[cups.bugs] [LOW] STR #1246: fix for gcc warning in png error print
Alexander Stohr
stohr at schwab-gft.de
Fri Aug 12 14:16:44 PDT 2005
[STR New]
the below patch changes the format string so that
the matching type specification (as given in png headers) is used.
for current Linux system these vars are always of type unsigned long.
-Alex.
diff -u image-png.c.orig image-png.c
--- image-png.c.orig 2005-02-18 03:18:11.000000000 +0100
+++ image-png.c 2005-08-12 16:23:27.000000000 +0200
@@ -82,7 +82,7 @@
png_read_info(pp, info);
- fprintf(stderr, "DEBUG: PNG image: %dx%dx%d, color_type=%x (%s%s%s)\n",
+ fprintf(stderr, "DEBUG: PNG image: %lux%lux%d, color_type=%x
(%s%s%s)\n",
info->width, info->height, info->bit_depth, info->color_type,
(info->color_type & PNG_COLOR_MASK_COLOR) ? "RGB" : "GRAYSCALE",
(info->color_type & PNG_COLOR_MASK_ALPHA) ? "+ALPHA" : "",
Link: http://www.cups.org/str.php?L1246
Version: 1.2-current
More information about the cups-devel
mailing list