aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/debug.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-06-05 18:40:40 +0000
committerYang Tse <yangsita@gmail.com>2009-06-05 18:40:40 +0000
commit6582895b5146149aab7c619cbcb0ea292cfe12e6 (patch)
tree84ed86d2b403fcd497eca23f064ff7ef03c391f5 /docs/examples/debug.c
parente3d65389d7f3d564d318428eb0f72a8466e476f0 (diff)
docs/example patches for VMS
Diffstat (limited to 'docs/examples/debug.c')
-rw-r--r--docs/examples/debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/examples/debug.c b/docs/examples/debug.c
index 543a565eb..30ce820cc 100644
--- a/docs/examples/debug.c
+++ b/docs/examples/debug.c
@@ -29,11 +29,12 @@ void dump(const char *text,
/* without the hex output, we can fit more on screen */
width = 0x40;
- fprintf(stream, "%s, %zd bytes (0x%zx)\n", text, size, size);
+ fprintf(stream, "%s, %010.10ld bytes (0x%08.8lx)\n",
+ text, (long)size, (long)size);
for(i=0; i<size; i+= width) {
- fprintf(stream, "%04zx: ", i);
+ fprintf(stream, "%04.4lx: ", (long)i);
if(!nohex) {
/* hex not disabled, show it */