diff options
author | thompsa <thompsa@FreeBSD.org> | 2008-12-22 19:52:21 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2008-12-22 19:52:21 +0000 |
commit | d52df5ae78e6fd537fca0d349be0a69b55e5a15d (patch) | |
tree | daa22300a420167ed7091263e08fc569aa0d46fa /sbin/kldstat | |
parent | 9e986ac16e888641c9e9fcd1e44ca74b8c201603 (diff) | |
download | FreeBSD-src-d52df5ae78e6fd537fca0d349be0a69b55e5a15d.zip FreeBSD-src-d52df5ae78e6fd537fca0d349be0a69b55e5a15d.tar.gz |
Only show the pathname in verbose output as intended in the last commit (r172862).
Diffstat (limited to 'sbin/kldstat')
-rw-r--r-- | sbin/kldstat/kldstat.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/kldstat/kldstat.c b/sbin/kldstat/kldstat.c index 4f4e786..ec243b8 100644 --- a/sbin/kldstat/kldstat.c +++ b/sbin/kldstat/kldstat.c @@ -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 |