Keep table aligned when address pointer is not of max length.
This commit is contained in:
parent
e4450a19d4
commit
6130efe458
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335859
@ -77,11 +77,13 @@ printfile(int fileid, int verbose, int humanized)
|
|||||||
humanize_number(buf, sizeof(buf), stat.size,
|
humanize_number(buf, sizeof(buf), stat.size,
|
||||||
"", HN_AUTOSCALE, HN_DECIMAL | HN_NOSPACE);
|
"", HN_AUTOSCALE, HN_DECIMAL | HN_NOSPACE);
|
||||||
|
|
||||||
printf("%2d %4d %p %5s %s",
|
printf("%2d %4d %*p %5s %s",
|
||||||
stat.id, stat.refs, stat.address, buf, stat.name);
|
stat.id, stat.refs, POINTER_WIDTH, stat.address, buf,
|
||||||
|
stat.name);
|
||||||
} else {
|
} else {
|
||||||
printf("%2d %4d %p %8zx %s",
|
printf("%2d %4d %*p %8zx %s",
|
||||||
stat.id, stat.refs, stat.address, stat.size, stat.name);
|
stat.id, stat.refs, POINTER_WIDTH, stat.address, stat.size,
|
||||||
|
stat.name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user