svn commit: r186398 - head/sbin/kldstat
Andrew Thompson
thompsa at FreeBSD.org
Mon Dec 22 19:52:22 UTC 2008
Author: thompsa
Date: Mon Dec 22 19:52:21 2008
New Revision: 186398
URL: http://svn.freebsd.org/changeset/base/186398
Log:
Only show the pathname in verbose output as intended in the last commit (r172862).
Modified:
head/sbin/kldstat/kldstat.c
Modified: head/sbin/kldstat/kldstat.c
==============================================================================
--- head/sbin/kldstat/kldstat.c Mon Dec 22 17:32:52 2008 (r186397)
+++ head/sbin/kldstat/kldstat.c Mon Dec 22 19:52:21 2008 (r186398)
@@ -60,17 +60,19 @@ static void printfile(int fileid, int ve
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
More information about the svn-src-all
mailing list