diff options
author | anholt <anholt@FreeBSD.org> | 2005-03-29 20:17:47 +0000 |
---|---|---|
committer | anholt <anholt@FreeBSD.org> | 2005-03-29 20:17:47 +0000 |
commit | 750ac28e3d927e39a361929d82802ee8227d9d88 (patch) | |
tree | 313ceff60a8b4a787ba26f298887927985d5a3d9 /usr.sbin/memcontrol | |
parent | 50f96338995287be26d375431fd0904b5319d4e2 (diff) | |
download | FreeBSD-src-750ac28e3d927e39a361929d82802ee8227d9d88.zip FreeBSD-src-750ac28e3d927e39a361929d82802ee8227d9d88.tar.gz |
Correct formatting of pointers in the listing by using "0x%" PRIx64 instead of
"%" PRIu64 "x".
Diffstat (limited to 'usr.sbin/memcontrol')
-rw-r--r-- | usr.sbin/memcontrol/memcontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/memcontrol/memcontrol.c b/usr.sbin/memcontrol/memcontrol.c index 4c60fe5..b6cb25f 100644 --- a/usr.sbin/memcontrol/memcontrol.c +++ b/usr.sbin/memcontrol/memcontrol.c @@ -178,7 +178,7 @@ listfunc(int memfd, int argc, char *argv[]) continue; if (owner && strcmp(mrd[i].mr_owner, owner)) continue; - printf("%" PRIu64 "x/%" PRIu64 "x %.8s ", mrd[i].mr_base, mrd[i].mr_len, + printf("0x%" PRIx64 "/0x%" PRIx64 " %.8s ", mrd[i].mr_base, mrd[i].mr_len, mrd[i].mr_owner[0] ? mrd[i].mr_owner : "-"); for (j = 0; attrnames[j].name != NULL; j++) if (mrd[i].mr_flags & attrnames[j].val) |