mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Only show the pathname in verbose output as intended in the last commit (r172862).
This commit is contained in:
parent
1361cdc644
commit
97a7a5698b
1 changed files with 5 additions and 3 deletions
|
|
@ -60,17 +60,19 @@ static void printfile(int fileid, int verbose)
|
|||
if (kldstat(fileid, &stat) < 0)
|
||||
warn("can't stat file id %d", fileid);
|
||||
else
|
||||
printf("%2d %4d %p %-8jx %s (%s)\n",
|
||||
printf("%2d %4d %p %-8jx %s",
|
||||
stat.id, stat.refs, stat.address, (uintmax_t)stat.size,
|
||||
stat.name, stat.pathname);
|
||||
stat.name);
|
||||
|
||||
if (verbose) {
|
||||
printf(" (%s)\n", stat.pathname);
|
||||
printf("\tContains modules:\n");
|
||||
printf("\t\tId Name\n");
|
||||
for (modid = kldfirstmod(fileid); modid > 0;
|
||||
modid = modfnext(modid))
|
||||
printmod(modid);
|
||||
}
|
||||
} else
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue