From 22bef56e70f9958e97e9daf45b036982070f5fca Mon Sep 17 00:00:00 2001 From: Roger Leigh Date: Sun, 17 Jan 2021 17:32:15 +0000 Subject: custom_dir_EXIF_231: Use PRI format flags and remove unnecessary casts --- test/custom_dir_EXIF_231.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/custom_dir_EXIF_231.c b/test/custom_dir_EXIF_231.c index 94ba6809..a0d78fa1 100644 --- a/test/custom_dir_EXIF_231.c +++ b/test/custom_dir_EXIF_231.c @@ -783,12 +783,12 @@ write_test_tiff(TIFF *tif, const char *filenameRead) retCode = TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &auxUint32 ); if (!retCode) { fprintf(stderr, "Can't read %s\n", "TIFFTAG_IMAGEWIDTH"); } if (auxUint32 != width) { - fprintf (stderr, "Read value of IMAGEWIDTH %d differs from set value %d\n", auxUint32, width); + fprintf (stderr, "Read value of IMAGEWIDTH %"PRIu32" differs from set value %"PRIu16"\n", auxUint32, width); } retCode = TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &auxUint32 ); if (!retCode) { fprintf(stderr, "Can't read %s\n", "TIFFTAG_IMAGELENGTH"); } if (auxUint32 != width) { - fprintf (stderr, "Read value of TIFFTAG_IMAGELENGTH %d differs from set value %d\n", auxUint32, length); + fprintf (stderr, "Read value of TIFFTAG_IMAGELENGTH %"PRIu32" differs from set value %"PRIu16"\n", auxUint32, length); } #ifdef ADDITIONAL_TAGS -- cgit v1.2.1