]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
remove debug from option descriptor module
authorBastian Dehn <hhaalo@arcor.de>
Sun, 9 Nov 2025 07:58:20 +0000 (08:58 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 9 Nov 2025 07:58:20 +0000 (08:58 +0100)
src/kds_s2000w_option_descriptors.c

index f295bc8198a8b2f366e0fc5ae1ed7a8fbc71f89b..ec24fd30e620e2a97187aef8d355174563eb0093 100644 (file)
@@ -2,7 +2,6 @@
 #include <string.h>
 #include <sane/saneopts.h>
 #include "kds_s2000w_option_descriptors.h"
-#include "kds_s2000w_debug.h"
 
 #define PROFILE_FULL_MAX_OPTION_COUNT 48
 #define PROFILE_230802_V1_0_36_MAX_OPTION_COUNT 26
@@ -56,8 +55,6 @@ SANE_Status _kds_s2000w_option_descriptor_validate()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_num_options()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_num_options");
-
        SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
        if (descriptor == NULL)
                return NULL;
@@ -79,8 +76,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_num_options()
  ******************************************************************************/
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_standard_group()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_standard_group");
-
        SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
        if (descriptor == NULL)
                return NULL;
@@ -99,8 +94,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_standard_group()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_scan_source()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_scan_source");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
        if (constraint == NULL)
                return NULL;
@@ -132,8 +125,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_scan_source()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_mode()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_mode");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
        if (constraint == NULL)
                return NULL;
@@ -165,8 +156,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_mode()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_dpi()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_dpi");
-
        SANE_Word* constraint = malloc(sizeof(SANE_Word) * 6);
        if (constraint == NULL)
                return NULL;
@@ -200,8 +189,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_dpi()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_scanside()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_scanside");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 3);
        if (constraint == NULL)
                return NULL;
@@ -235,8 +222,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_scanside()
  ******************************************************************************/
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_geometry_group()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_scan_area_group");
-
        SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
        if (descriptor == NULL)
                return NULL;
@@ -255,8 +240,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_geometry_group()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_cropping_mode()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_cropping_mode");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 5);
        if (constraint == NULL)
                return NULL;
@@ -289,8 +272,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_cropping_mode()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_cropping_image()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_cropping_image");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 3);
        if (constraint == NULL)
                return NULL;
@@ -321,8 +302,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_cropping_image()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_offset_x()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_image_offset_x");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -353,8 +332,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_offset_x()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_offset_y()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_image_offset_y");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -385,8 +362,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_offset_y()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_width()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_image_width");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -417,8 +392,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_width()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_height()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_image_height");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -452,8 +425,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_height()
  ******************************************************************************/
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_boldness_smoothing_group()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_advanced_group");
-
        SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
        if (descriptor == NULL)
                return NULL;
@@ -472,8 +443,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_boldness_smoothing_group()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_foreground_boldness_mode()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_foreground_boldness_mode");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
        if (constraint == NULL)
                return NULL;
@@ -505,8 +474,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_foreground_boldness_mode()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_foreground_boldness_aggressiveness()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_foreground_boldness_aggressiveness");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -537,8 +504,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_foreground_boldness_aggres
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_background_smoothing_mode()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_background_smoothing_mode");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
        if (constraint == NULL)
                return NULL;
@@ -570,8 +535,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_background_smoothing_mode(
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_background_smoothing_aggressiveness()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_background_smoothing_aggressiveness");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -605,8 +568,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_background_smoothing_aggre
  ******************************************************************************/
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_boldness_color_group()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_boldness_color_group");
-
        SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
        if (descriptor == NULL)
                return NULL;
@@ -625,8 +586,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_boldness_color_group()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_drop()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_drop");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 9);
        if (constraint == NULL)
                return NULL;
@@ -663,8 +622,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_drop()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_drop_out_aggressiveness()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_drop_out_aggressiveness");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -695,8 +652,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_drop_out_aggressiven
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_auto_brightness_mode()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_auto_brightness_mode");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
        if (constraint == NULL)
                return NULL;
@@ -728,8 +683,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_auto_brightness_mode
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_brightness()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_brightness");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -760,8 +713,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_brightness()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_contrast()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_contrast");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -792,8 +743,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_contrast()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_balance_mode()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_balance_mode");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 5);
        if (constraint == NULL)
                return NULL;
@@ -826,8 +775,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_balance_mode()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_balance_agressiveness()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_balancea_agressiveness");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -858,8 +805,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_balance_agressivenes
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_balance_red()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_balance_red");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -890,8 +835,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_balance_red()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_balance_green()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_balance_green");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -922,8 +865,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_balance_green()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_balance_blue()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_balance_blue");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -954,8 +895,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_balance_blue()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_sharpen()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_sharpen");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 5);
        if (constraint == NULL)
                return NULL;
@@ -988,8 +927,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_sharpen()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_binarization_contrast()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_binarization_contrast");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -1020,8 +957,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_binarization_contrast()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_config_reset()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_config_reset");
-
        SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
        if (descriptor == NULL)
                return NULL;
@@ -1043,8 +978,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_config_reset()
  ******************************************************************************/
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_processing_group()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_image_processing_group");
-
        SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
        if (descriptor == NULL)
                return NULL;
@@ -1063,8 +996,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_processing_group()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_skip_blank_pages()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_skip_blank_pages");
-
        SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
        if (descriptor == NULL)
                return NULL;
@@ -1083,8 +1014,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_skip_blank_pages()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_skip_blank_page_content()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_skip_blank_page_content");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -1115,8 +1044,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_skip_blank_page_content()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_hole_fill()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_hole_fill");
-
        SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
        if (descriptor == NULL)
                return NULL;
@@ -1135,8 +1062,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_hole_fill()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_post_scan_rotation()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_post_scan_rotation");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 6);
        if (constraint == NULL)
                return NULL;
@@ -1170,8 +1095,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_post_scan_rotation()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_edge_fill()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_edge_fill");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
        if (constraint == NULL)
                return NULL;
@@ -1203,8 +1126,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_edge_fill()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_border()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_image_border");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
        if (constraint == NULL)
                return NULL;
@@ -1236,8 +1157,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_border()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_jpeg_quality()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_jpeg_quality");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 6);
        if (constraint == NULL)
                return NULL;
@@ -1274,8 +1193,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_jpeg_quality()
  ******************************************************************************/
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_feeder_group()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_feeder_group");
-
        SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
        if (descriptor == NULL)
                return NULL;
@@ -1294,8 +1211,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_feeder_group()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_autostart()
 {
-       kds_s2000w_debug_printf(ALL, "_kds_s2000w_option_descriptor_autostart");
-
        SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
        if (descriptor == NULL)
                return NULL;
@@ -1314,8 +1229,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_autostart()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_max_document_length()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_max_document_length");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -1346,8 +1259,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_max_document_length()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_transport_handling()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_transport_handling");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 5);
        if (constraint == NULL)
                return NULL;
@@ -1380,8 +1291,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_transport_handling()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_multifeed_sensitivity()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_multifeed_sensitivity");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 5);
        if (constraint == NULL)
                return NULL;
@@ -1414,8 +1323,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_multifeed_sensitivity()
 
 SANE_Option_Descriptor *_kds_s2000w_option_descriptor_multifeed_response()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_multifeed_response");
-
        const char** constraint = malloc(sizeof(SANE_String_Const*) * 3);
        if (constraint == NULL)
                return NULL;
@@ -1446,8 +1353,6 @@ SANE_Option_Descriptor *_kds_s2000w_option_descriptor_multifeed_response()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_document_feeder_timeout()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_document_feeder_timeout");
-
        SANE_Range* constraint = malloc(sizeof(SANE_Range));
        if (constraint == NULL)
                return NULL;
@@ -1478,8 +1383,6 @@ SANE_Option_Descriptor* _kds_s2000w_option_descriptor_document_feeder_timeout()
 
 SANE_Option_Descriptor* _kds_s2000w_option_descriptor_document_feeder_timeout_response()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_document_feeder_timeout_response");
-
        char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
        if (constraint == NULL)
                return NULL;
@@ -1767,8 +1670,6 @@ SANE_Status _kds_s2000w_option_descriptors_init_full_profile()
  ******************************************************************************/
 SANE_Status kds_s2000w_option_descriptors_init(profile_t profile)
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptors_init");
-
        switch (profile) {
        case PROFILE_FULL:
                return _kds_s2000w_option_descriptors_init_full_profile();
@@ -1786,8 +1687,6 @@ SANE_Status kds_s2000w_option_descriptors_init(profile_t profile)
 
 void kds_s2000w_option_descriptors_free()
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptors_free");
-
        if (descriptors == NULL)
                return;
 
@@ -1807,8 +1706,6 @@ uint8_t kds_s2000w_option_descriptors_get_max_option_count()
 
 option_descriptor_t* kds_s2000w_option_descriptors_full_get_by_number(uint32_t number)
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_full_get_by_number");
-
        if (number >= max_option_count)
                return NULL;
 
@@ -1817,8 +1714,6 @@ option_descriptor_t* kds_s2000w_option_descriptors_full_get_by_number(uint32_t n
 
 SANE_Option_Descriptor* kds_s2000w_option_descriptors_get_by_number(uint32_t number)
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptors_get_by_number");
-
        if (number >= max_option_count)
                return NULL;
 
@@ -1827,8 +1722,6 @@ SANE_Option_Descriptor* kds_s2000w_option_descriptors_get_by_number(uint32_t num
 
 SANE_Option_Descriptor* kds_s2000w_option_descriptors_get_by_config_name(const char* name)
 {
-       kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptors_get_by_config_name");
-
        for (int i = 0; i < max_option_count; i++) {
                if (strcmp(descriptors[i]->config_name, name) == 0)
                        return descriptors[i]->descriptor;