diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-12-18 23:06:39 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-12-18 23:06:39 +0100 |
commit | f52e85826f72d6ee16b167d11c85fef31399b61b (patch) | |
tree | 2ac7afa2f1cce12e57055ed7d10c0c4e6345048e | |
parent | 476a47b15c152e72aa8a6d9f9eb363931cbfd50f (diff) | |
download | plan9front-f52e85826f72d6ee16b167d11c85fef31399b61b.tar.xz |
kernel: print addresses in hex and sizes in decimal in xallocsummary
-rw-r--r-- | sys/src/9/port/xalloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/9/port/xalloc.c b/sys/src/9/port/xalloc.c index 15a5327e6..6db734160 100644 --- a/sys/src/9/port/xalloc.c +++ b/sys/src/9/port/xalloc.c @@ -242,7 +242,7 @@ xhole(uintptr addr, uintptr size) if(xlists.flist == nil) { iunlock(&xlists); - print("xfree: no free holes, leaked %p bytes\n", size); + print("xfree: no free holes, leaked %llud bytes\n", (uvlong)size); return; } @@ -270,8 +270,8 @@ xsummary(void) s = 0; for(h = xlists.table; h; h = h->link) { - print("%#p %#p %p\n", h->addr, h->top, h->size); + print("%#8.8p %#8.8p %llud\n", h->addr, h->top, (uvlong)h->size); s += h->size; } - print("%lld bytes free\n", (vlong)s); + print("%llud bytes free\n", (uvlong)s); } |