]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add debug info for download image
authorBastian Dehn <hhaalo@arcor.de>
Fri, 23 Feb 2024 14:12:57 +0000 (15:12 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 23 Feb 2024 14:14:34 +0000 (15:14 +0100)
src/kds_s2000w_handler.c
src/kds_s2000w_net.c

index 7b80fa96e363195efb1cf3b991c057a11b703585..93c0dc0806bb39fa27d69b290a44e1f4cf332ff9 100644 (file)
@@ -298,12 +298,16 @@ void kds_s2000w_handler_get_parameters(void* handle)
 
        if (!h->current_scan_status->complete_scanned
                && h->current_scan_status->available_images <= 0) {
+               debug_printf(DEBUG, "get scanner status");
                _get_current_scan_status(h);
        }
 
        if (h->current_scan_status->available_images > 0) {
+               debug_printf_int(DEBUG, "download image", h->current_scan_status->current_image_number);
                _download_current_image(h);
+               debug_printf_int(DEBUG, "get metadata for image", h->current_scan_status->current_image_number);
                _get_current_metadata(h);
+               debug_printf_int(DEBUG, "delete image", h->current_scan_status->current_image_number);
                _delete_current_image(h);
                h->current_scan_status->current_image_number++;
        }
index e4ae3dc1ba3007c70dfb8b2ea3e72264ec5eab0a..6a15bdc4705d3d22438fa6e2c4ef0ae68f56f3b9 100644 (file)
@@ -127,7 +127,7 @@ SANE_Status _sane_kds_s2000w_net_get_parameters(SANE_Handle handle,
 
        for (int i = 0; i < 10; i++) {
                sleep(1);
-               kds_s2000w_handler_get_parameters(handle);
+               kds_s2000w_handler_get_parameters(h);
                if (h->current_metadata->valid)
                        break;
        }