]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add debug info
authorBastian Dehn <hhaalo@arcor.de>
Sat, 8 Mar 2025 17:33:38 +0000 (18:33 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 8 Mar 2025 17:33:38 +0000 (18:33 +0100)
src/kds_s2000w_handler_opts.c

index 5b7645b8bd91c61e5aa044b9a8376711862c566f..6507f91519b1130c7410d893a7005bedadb04af4 100644 (file)
@@ -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);
 }