You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2013/07/05 16:14:10 UTC
svn commit: r1500016 - /qpid/trunk/qpid/extras/dispatch/tests/parse_test.c
Author: tross
Date: Fri Jul 5 14:14:10 2013
New Revision: 1500016
URL: http://svn.apache.org/r1500016
Log:
NO-JIRA - Updated printf format codes to be portable.
Modified:
qpid/trunk/qpid/extras/dispatch/tests/parse_test.c
Modified: qpid/trunk/qpid/extras/dispatch/tests/parse_test.c
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/extras/dispatch/tests/parse_test.c?rev=1500016&r1=1500015&r2=1500016&view=diff
==============================================================================
--- qpid/trunk/qpid/extras/dispatch/tests/parse_test.c (original)
+++ qpid/trunk/qpid/extras/dispatch/tests/parse_test.c Fri Jul 5 14:14:10 2013
@@ -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(v
}
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;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org