]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change print errors with debug print
authorBastian Dehn <hhaalo@arcor.de>
Sat, 4 Jan 2025 11:48:13 +0000 (12:48 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 4 Jan 2025 11:48:13 +0000 (12:48 +0100)
src/kds_s2000w_client.c
src/kds_s2000w_image_converter.c

index 5443de636daac1b0ef8c9dc736f234676224155b..cfd167ec7068fa8d4a29b20de8cd99716c6015d4 100644 (file)
@@ -34,7 +34,7 @@ void _kds_s2000w_client_print_error_status(CURL* curl)
        if (header == NULL)
                return;
 
-       fprintf(stderr, "%s\n", header->value);
+       debug_printf(ERROR, header->value);
 }
 
 void _kds_s2000w_client_print_error_result(CURLcode result)
@@ -42,7 +42,7 @@ void _kds_s2000w_client_print_error_result(CURLcode result)
        if (result == CURLE_OK)
                return;
 
-       fprintf(stderr, "ERROR: curl_easy_perform: %s\n", curl_easy_strerror(result));
+       debug_printf(ERROR, curl_easy_strerror(result));
 }
 
 void _kds_s2000w_client_stream_to_response(char* mem, response* resp, size_t* size)
index b77b13552c8bf0e860bea88d6b9051ac104e10f0..d9f09f9bf211ccbcdaca4b091243251103a59dab 100644 (file)
@@ -32,7 +32,7 @@ void kds_s2000w_convert_to_pnm_with_depth(blobdata* in,
        Image* input_image = BlobToImage(image_info, in->data, in->size , exception);
 
        if (exception->severity != UndefinedException) {
-               fprintf(stderr, "%s\n", GetExceptionMessage(exception->error_number));
+               debug_printf(ERROR, GetExceptionMessage(exception->error_number));
                CatchException(exception);
        }
 
@@ -93,7 +93,7 @@ void kds_s2000w_metadata_from_image(blobdata* image, image_metadata* mdata)
        Image* input_image = BlobToImage(image_info, image->data, image->size , exception);
 
        if (exception->severity != UndefinedException) {
-               fprintf(stderr, "%s\n", GetExceptionMessage(exception->error_number));
+               debug_printf(ERROR, GetExceptionMessage(exception->error_number));
                CatchException(exception);
        }