diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2025-09-15 09:27:16 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2025-09-15 09:27:16 +0200 |
commit | a00358f07e4474d0cbc8817d7b2f2d2c5cbdac0c (patch) | |
tree | 506c2deebcad7684c125e894a7eee29598ed2ecd /backend/escl/escl_tiff.c | |
parent | 7a3814ff46a11da098906af8621571b1a323226e (diff) | |
parent | 0b8a357c867854848e6987edcf4433a9a6534ba7 (diff) |
Merge branch 'release/debian/1.4.0-1'HEADdebian/1.4.0-1master
Diffstat (limited to 'backend/escl/escl_tiff.c')
-rw-r--r-- | backend/escl/escl_tiff.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backend/escl/escl_tiff.c b/backend/escl/escl_tiff.c index e17554e..6270ff4 100644 --- a/backend/escl/escl_tiff.c +++ b/backend/escl/escl_tiff.c @@ -65,7 +65,7 @@ get_TIFF_data(capabilities_t *scanner, int *width, int *height, int *bps) lseek(fileno(scanner->tmp), 0, SEEK_SET); tif = TIFFFdOpen(fileno(scanner->tmp), "temp", "r"); if (!tif) { - DBG( 1, "Escl Tiff : Can not open, or not a TIFF file.\n"); + DBG( 10, "Escl Tiff : Can not open, or not a TIFF file.\n"); status = SANE_STATUS_INVAL; goto close_file; } @@ -76,14 +76,14 @@ get_TIFF_data(capabilities_t *scanner, int *width, int *height, int *bps) surface = (unsigned char*) malloc(npixels * sizeof (uint32_t)); if (surface == NULL) { - DBG( 1, "Escl Tiff : raster Memory allocation problem.\n"); + DBG( 10, "Escl Tiff : raster Memory allocation problem.\n"); status = SANE_STATUS_INVAL; goto close_tiff; } if (!TIFFReadRGBAImage(tif, w, h, (uint32_t *)surface, 0)) { - DBG( 1, "Escl Tiff : Problem reading image data.\n"); + DBG( 10, "Escl Tiff : Problem reading image data.\n"); status = SANE_STATUS_INVAL; free(surface); goto close_tiff; @@ -94,7 +94,7 @@ get_TIFF_data(capabilities_t *scanner, int *width, int *height, int *bps) // If necessary, trim the image. surface = escl_crop_surface(scanner, surface, w, h, components, width, height); if (!surface) { - DBG( 1, "Escl Tiff : Surface Memory allocation problem\n"); + DBG( 10, "Escl Tiff : Surface Memory allocation problem\n"); status = SANE_STATUS_INVAL; } |