]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add debug info completed
authorBastian Dehn <hhaalo@arcor.de>
Fri, 27 Dec 2024 10:27:50 +0000 (11:27 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 27 Dec 2024 10:27:50 +0000 (11:27 +0100)
src/kds_s2000w_net.c

index 17b11d3c6a9c3da2668066d97ea9cd524951c0fe..df81a2d6150e8a5888b820ca6755d0c99ec1166b 100644 (file)
@@ -129,17 +129,20 @@ void _sane_kds_s2000w_net_cancel(SANE_Handle handle)
        kds_s2000w_net_handler_get_current_scan_status(h);
 
        if (h->current_scan_status->complete_scanned > 0) {
+               debug_printf(DEBUG, "scan completed");
                reset_handler(h);
                return;
        }
 
        if (h->read_info->cancel > 0
                || h->current_scan_status->available_images <= 0) {
+               debug_printf(DEBUG, "scan completed - cancel or no availible images");
                reset_handler(h);
                kds_s2000w_handler_recreate_session(h);
                return;
        }
 
+       debug_printf(DEBUG, "scan canceled");
        h->read_info->cancel = 1;
        kds_s2000w_handler_stop_scan(h);
 }