summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2013-10-14 11:38:01 +0200
committerYorhel <git@yorhel.nl>2013-10-14 11:38:01 +0200
commitd3b12867ffb8885441496335ed69911684739f16 (patch)
tree490948b859742ac5cf3905f7946f901af1eaa6b2
parent73563ab69fc582bda45bc58d61e05897281c2ff0 (diff)
test: Use correct printf formatting for debug output
-rw-r--r--test/test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test.c b/test/test.c
index ab9b048..065196b 100644
--- a/test/test.c
+++ b/test/test.c
@@ -23,6 +23,7 @@
#include <yxml.h>
#include <stdio.h>
#include <stdlib.h>
+#include <inttypes.h>
static char stack[8*1024];
@@ -48,7 +49,7 @@ static void y_printstring(const char *str) {
static void y_printtoken(yxml_t *x, const char *str) {
puts("");
if(verbose)
- printf("t%03lu l%03u b%03lu: ", x->total, x->line, x->byte);
+ printf("t%03"PRIu64" l%03"PRIu32" b%03"PRIu64": ", x->total, x->line, x->byte);
printf("%s", str);
}