From: Bastian Dehn Date: Sat, 20 Apr 2024 06:22:43 +0000 (+0200) Subject: add debug info for status response X-Git-Tag: v1.0.0^2~7 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=01707e597f501c9ae3ecbd50d6ae752e2f083030;p=sane-kds-s2000w-net.git add debug info for status response --- diff --git a/src/kds_s2000w_handler.c b/src/kds_s2000w_handler.c index 0604070..7525865 100644 --- a/src/kds_s2000w_handler.c +++ b/src/kds_s2000w_handler.c @@ -153,6 +153,7 @@ void _get_current_scan_status(handler* h) if (resp->error_size > 0) fprintf(stderr, "%s\n", resp->error_status); + debug_printf(DEBUG, resp->data); status_resp_obj = json_tokener_parse(resp->data); status_obj = json_object_object_get(status_resp_obj, "Status"); status_value_obj = json_object_object_get(status_obj, "NumImagesStored");