summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2013-07-05 14:14:10 +0000
committerTed Ross <tross@apache.org>2013-07-05 14:14:10 +0000
commit602ae3b5f7cc7dbe429532466237e2e943ae2059 (patch)
tree7ec582674de4deeac9be45afa77c92d78629c499
parent913c1dff25da868988b337e04f5cf5067bea3590 (diff)
downloadqpid-python-602ae3b5f7cc7dbe429532466237e2e943ae2059.tar.gz
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
-rw-r--r--qpid/extras/dispatch/tests/parse_test.c9
1 files 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 <stdio.h>
#include <assert.h>
#include <string.h>
+#include <inttypes.h>
#include "test_case.h"
#include <qpid/dispatch.h>
@@ -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;
}