From: Bastian Dehn Date: Sat, 8 Mar 2025 17:33:38 +0000 (+0100) Subject: add debug info X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=f9423a85f19d86e85e8b4349389e54bdfb5ddb84;p=sane-kds-s2000w-net.git add debug info --- diff --git a/src/kds_s2000w_handler_opts.c b/src/kds_s2000w_handler_opts.c index 5b7645b..6507f91 100644 --- a/src/kds_s2000w_handler_opts.c +++ b/src/kds_s2000w_handler_opts.c @@ -329,6 +329,7 @@ void _kds_s2000w_handler_opts_get_pixel_value_from_inch(json_object* config, con int32_t inch = json_object_get_int(object_value); *pixel = _kds_s2000w_handler_opts_inch_to_pixel(config, inch); + kds_s2000w_debug_printf_int(DEBUG, "pixel", *pixel); } void _kds_s2000w_handler_opts_set_inch_value_from_pixel(json_object* config, const char* option_name, void* value) @@ -338,6 +339,7 @@ void _kds_s2000w_handler_opts_set_inch_value_from_pixel(json_object* config, con json_object* object_value = json_object_object_get(config, option_name); int32_t inch = _kds_s2000w_handler_opts_pixel_to_inch(config, *pixel); + kds_s2000w_debug_printf_int(DEBUG, "inch", inch); _kds_s2000w_handler_opts_write_int_value_to_json(object_value, &inch); }