Allow three digits of module id without breaking table alignment.
This commit is contained in:
parent
6130efe458
commit
294b242d80
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335860
@ -55,10 +55,10 @@ printmod(int modid)
|
|||||||
warn("can't stat module id %d", modid);
|
warn("can't stat module id %d", modid);
|
||||||
else
|
else
|
||||||
if (showdata) {
|
if (showdata) {
|
||||||
printf("\t\t%2d %s (%d, %u, 0x%lx)\n", stat.id, stat.name,
|
printf("\t\t%3d %s (%d, %u, 0x%lx)\n", stat.id, stat.name,
|
||||||
stat.data.intval, stat.data.uintval, stat.data.ulongval);
|
stat.data.intval, stat.data.uintval, stat.data.ulongval);
|
||||||
} else {
|
} else {
|
||||||
printf("\t\t%2d %s\n", stat.id, stat.name);
|
printf("\t\t%3d %s\n", stat.id, stat.name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ printfile(int fileid, int verbose, int humanized)
|
|||||||
if (verbose) {
|
if (verbose) {
|
||||||
printf(" (%s)\n", stat.pathname);
|
printf(" (%s)\n", stat.pathname);
|
||||||
printf("\tContains modules:\n");
|
printf("\tContains modules:\n");
|
||||||
printf("\t\tId Name\n");
|
printf("\t\t Id Name\n");
|
||||||
for (modid = kldfirstmod(fileid); modid > 0;
|
for (modid = kldfirstmod(fileid); modid > 0;
|
||||||
modid = modfnext(modid))
|
modid = modfnext(modid))
|
||||||
printmod(modid);
|
printmod(modid);
|
||||||
|
Loading…
Reference in New Issue
Block a user