summaryrefslogtreecommitdiffstats
path: root/src/cmd/venti/srv/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/venti/srv/utils.c')
-rw-r--r--src/cmd/venti/srv/utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/venti/srv/utils.c b/src/cmd/venti/srv/utils.c
index 73c1d068..d810c53d 100644
--- a/src/cmd/venti/srv/utils.c
+++ b/src/cmd/venti/srv/utils.c
@@ -151,7 +151,7 @@ emalloc(ulong n)
}
memset(p, 0xa5, n);
setmalloctag(p, getcallerpc(&n));
-if(0)print("emalloc %p-%p by %lux\n", p, (char*)p+n, getcallerpc(&n));
+if(0)print("emalloc %p-%p by %#p\n", p, (char*)p+n, getcallerpc(&n));
return p;
}
@@ -168,7 +168,7 @@ ezmalloc(ulong n)
}
memset(p, 0, n);
setmalloctag(p, getcallerpc(&n));
-if(0)print("ezmalloc %p-%p by %lux\n", p, (char*)p+n, getcallerpc(&n));
+if(0)print("ezmalloc %p-%p by %#p\n", p, (char*)p+n, getcallerpc(&n));
return p;
}
@@ -182,7 +182,7 @@ erealloc(void *p, ulong n)
sysfatal("out of memory allocating %lud", n);
}
setrealloctag(p, getcallerpc(&p));
-if(0)print("erealloc %p-%p by %lux\n", p, (char*)p+n, getcallerpc(&p));
+if(0)print("erealloc %p-%p by %#p\n", p, (char*)p+n, getcallerpc(&p));
return p;
}
@@ -196,7 +196,7 @@ estrdup(char *s)
t = emalloc(n);
memmove(t, s, n);
setmalloctag(t, getcallerpc(&s));
-if(0)print("estrdup %p-%p by %lux\n", t, (char*)t+n, getcallerpc(&s));
+if(0)print("estrdup %p-%p by %#p\n", t, (char*)t+n, getcallerpc(&s));
return t;
}