Correct formatting of pointers in the listing by using "0x%" PRIx64 instead of

"%" PRIu64 "x".
This commit is contained in:
Eric Anholt 2005-03-29 20:17:47 +00:00
parent 0fc5fe1218
commit 50f39947de
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144303

View file

@ -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)