summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@codelibre.net>2021-01-17 17:32:15 +0000
committerRoger Leigh <rleigh@codelibre.net>2021-01-27 22:00:36 +0000
commit22bef56e70f9958e97e9daf45b036982070f5fca (patch)
tree89a2bc018eab55d5400a32e6f897b42d4d21aa45
parentf1afb21deaa3881ed626ad3a712e088e3ff7e215 (diff)
downloadlibtiff-git-22bef56e70f9958e97e9daf45b036982070f5fca.tar.gz
custom_dir_EXIF_231: Use PRI format flags and remove unnecessary casts
-rw-r--r--test/custom_dir_EXIF_231.c4
1 files 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