diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2005-03-29 20:17:47 +0000 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2005-03-29 20:17:47 +0000 |
commit | 50f39947dec886e964aedf712b237714c8c6e852 (patch) | |
tree | 313ceff60a8b4a787ba26f298887927985d5a3d9 /usr.sbin/memcontrol | |
parent | 0fc5fe121850ba4503ab4551ff8bf5ea4968075b (diff) | |
download | src-50f39947dec886e964aedf712b237714c8c6e852.tar.gz src-50f39947dec886e964aedf712b237714c8c6e852.zip |
Correct formatting of pointers in the listing by using "0x%" PRIx64 instead of
"%" PRIu64 "x".
Notes
Notes:
svn path=/head/; revision=144303
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 4c60fe5b22c6..b6cb25f000e1 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) |