aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/multi-debugcallback.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/multi-debugcallback.c')
-rw-r--r--docs/examples/multi-debugcallback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/multi-debugcallback.c b/docs/examples/multi-debugcallback.c
index 5de3ff3e5..11ab74b71 100644
--- a/docs/examples/multi-debugcallback.c
+++ b/docs/examples/multi-debugcallback.c
@@ -52,11 +52,11 @@ void dump(const char *text,
width = 0x40;
fprintf(stream, "%s, %10.10lu bytes (0x%8.8lx)\n",
- text, size, size);
+ text, (unsigned long)size, (unsigned long)size);
for(i = 0; i<size; i += width) {
- fprintf(stream, "%4.4lx: ", i);
+ fprintf(stream, "%4.4lx: ", (unsigned long)i);
if(!nohex) {
/* hex not disabled, show it */