summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-09-30 14:17:08 +0200
committerRan Benita <ran234@gmail.com>2012-09-30 14:20:16 +0200
commit26cc2f400a65b09b27a05349d0134201262dc437 (patch)
treea6152977593ca0847e1698117091e2450e420b42 /test
parented1203dfef1e946a834ba08655d467dd8aa15b0f (diff)
Don't use %z printf format
Some libc's don't support it. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/stringcomp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/stringcomp.c b/test/stringcomp.c
index e95a3c4..e93791a 100644
--- a/test/stringcomp.c
+++ b/test/stringcomp.c
@@ -55,8 +55,9 @@ main(int argc, char *argv[])
"round-trip test failed: dumped map differs from original\n");
fprintf(stderr, "path to original file: %s\n",
test_get_path(DATA_PATH));
- fprintf(stderr, "length: dumped %zu, original %zu\n",
- strlen(dump), strlen(original));
+ fprintf(stderr, "length: dumped %lu, original %lu\n",
+ (unsigned long) strlen(dump),
+ (unsigned long) strlen(original));
fprintf(stderr, "dumped map:\n");
fprintf(stderr, "%s\n", dump);
fflush(stderr);