From f45f9b6dbc8f7ee37b354196350d0e575cf7c0fe Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Wed, 4 Feb 2015 03:52:34 +0000 Subject: [PATCH] structinit test: use %PRIuZ instead of %d for size_t --- tests/core/structinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core/structinit.c b/tests/core/structinit.c index d064f348e..25254b713 100644 --- a/tests/core/structinit.c +++ b/tests/core/structinit.c @@ -45,7 +45,7 @@ static void options_cmp(void *one, void *two, size_t size, const char *name) if (((char *)one)[i] != ((char *)two)[i]) { char desc[1024]; - p_snprintf(desc, 1024, "Difference in %s at byte %d: macro=%u / func=%u", + p_snprintf(desc, 1024, "Difference in %s at byte %" PRIuZ ": macro=%u / func=%u", name, i, ((char *)one)[i], ((char *)two)[i]); clar__fail(__FILE__, __LINE__, "Difference between macro and function options initializer",