From 602ae3b5f7cc7dbe429532466237e2e943ae2059 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Fri, 5 Jul 2013 14:14:10 +0000 Subject: NO-JIRA - Updated printf format codes to be portable. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1500016 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/extras/dispatch/tests/parse_test.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qpid/extras/dispatch/tests/parse_test.c b/qpid/extras/dispatch/tests/parse_test.c index 02e10c00c9..d11bb4e359 100644 --- a/qpid/extras/dispatch/tests/parse_test.c +++ b/qpid/extras/dispatch/tests/parse_test.c @@ -21,6 +21,7 @@ #include #include #include +#include #include "test_case.h" #include @@ -76,25 +77,25 @@ static char *test_parser_fixed_scalars(void *context) } if (fs_vectors[idx].check_uint && dx_parse_as_uint(parsed) != fs_vectors[idx].expected_ulong) { - sprintf(error, "(%d) UINT: Expected %08lx, Got %08x", idx, + sprintf(error, "(%d) UINT: Expected %"PRIx64", Got %"PRIx32, idx, fs_vectors[idx].expected_ulong, dx_parse_as_uint(parsed)); return error; } if (fs_vectors[idx].check_ulong && dx_parse_as_ulong(parsed) != fs_vectors[idx].expected_ulong) { - sprintf(error, "(%d) ULONG: Expected %08lx, Got %08lx", idx, + sprintf(error, "(%d) ULONG: Expected %"PRIx64", Got %"PRIx64, idx, fs_vectors[idx].expected_ulong, dx_parse_as_ulong(parsed)); return error; } if (fs_vectors[idx].check_int && dx_parse_as_int(parsed) != fs_vectors[idx].expected_long) { - sprintf(error, "(%d) INT: Expected %08lx, Got %08x", idx, + sprintf(error, "(%d) INT: Expected %"PRIx64", Got %"PRIx32, idx, fs_vectors[idx].expected_long, dx_parse_as_int(parsed)); return error; } if (fs_vectors[idx].check_long && dx_parse_as_long(parsed) != fs_vectors[idx].expected_long) { - sprintf(error, "(%d) LONG: Expected %08lx, Got %08lx", idx, + sprintf(error, "(%d) LONG: Expected %"PRIx64", Got %"PRIx64, idx, fs_vectors[idx].expected_long, dx_parse_as_long(parsed)); return error; } -- cgit v1.2.1