]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
remove print lines in read loop
authorBastian Dehn <hhaalo@arcor.de>
Sun, 11 Feb 2024 13:36:33 +0000 (14:36 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 11 Feb 2024 13:36:33 +0000 (14:36 +0100)
src/kds_s2000w_net.c

index 83c44fba37ec8f74428b964d720e19e2486d4d14..65a3811c4f04e2a9e9e4a471df93c1df49649b7a 100644 (file)
@@ -247,7 +247,6 @@ SANE_Status _sane_kds_s2000w_net_start(SANE_Handle handle)
 SANE_Status _sane_kds_s2000w_net_read(SANE_Handle handle, SANE_Byte* data,
        SANE_Int max_length, SANE_Int* length)
 {
-       printf("is all scanned: %i\n", current_metadata.scanned_all_complete);
        int skip_header_bytes = _sane_kds_s2000w_net_find_first_data_byte(current_metadata.image);
        
        if (read_size <= 0) {
@@ -255,7 +254,6 @@ SANE_Status _sane_kds_s2000w_net_read(SANE_Handle handle, SANE_Byte* data,
        }
 
        if (readed_lines >= current_metadata.lines ) {
-               printf("Image is loaded\n");
                read_size = 0;
                *length = 0;
                readed_lines = 0;
@@ -291,9 +289,6 @@ SANE_Status _sane_kds_s2000w_net_read(SANE_Handle handle, SANE_Byte* data,
                readed_lines++;
        }
 
-       printf("length: %i\n", *length);
-       printf("read size: %i\n", read_size);
-
        return SANE_STATUS_GOOD;
 }