diff options
author | ps <ps@FreeBSD.org> | 2000-07-01 07:57:28 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2000-07-01 07:57:28 +0000 |
commit | 890ccc031565a9f36f3b661d34d0bd3138019b85 (patch) | |
tree | 5a4db6bc28a436ebe2d351ee0b837f24f5d520c1 /sbin/kldstat | |
parent | 5a1e6c960d9a13a4078c249a02eea6c731abd3c5 (diff) | |
download | FreeBSD-src-890ccc031565a9f36f3b661d34d0bd3138019b85.zip FreeBSD-src-890ccc031565a9f36f3b661d34d0bd3138019b85.tar.gz |
Backout rev 1.8. This really does not give us the version number
of the kld's.
Pointed out by: bp
Diffstat (limited to 'sbin/kldstat')
-rw-r--r-- | sbin/kldstat/kldstat.8 | 5 | ||||
-rw-r--r-- | sbin/kldstat/kldstat.c | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sbin/kldstat/kldstat.8 b/sbin/kldstat/kldstat.8 index 80c52d7..f12d503 100644 --- a/sbin/kldstat/kldstat.8 +++ b/sbin/kldstat/kldstat.8 @@ -39,12 +39,13 @@ .Sh DESCRIPTION The .Nm -utility displays information about files dynamically linked into the kernel. +utility displays the status of any files dynamically linked into the +kernel. .Pp The following options are available: .Bl -tag -width indentXX .It Fl v -Display information about each module in each file. +Be more verbose. .It Fl i Ar id Display the status of only the file with this ID. .It Fl n Ar name diff --git a/sbin/kldstat/kldstat.c b/sbin/kldstat/kldstat.c index cc3508f..58c5388 100644 --- a/sbin/kldstat/kldstat.c +++ b/sbin/kldstat/kldstat.c @@ -53,8 +53,7 @@ printmod(int modid) if (modstat(modid, &stat) < 0) warn("can't stat module id %d", modid); else - printf("\t\t%2d %2d 0x%-8x %s\n", - stat.id, stat.refs, stat.version, stat.name); + printf("\t\t%2d %s\n", stat.id, stat.name); } static void printfile(int fileid, int verbose) @@ -71,7 +70,7 @@ static void printfile(int fileid, int verbose) if (verbose) { printf("\tContains modules:\n"); - printf("\t\tId Refs Version%*c Name\n", POINTER_WIDTH - 7, ' '); + printf("\t\tId Name\n"); for (modid = kldfirstmod(fileid); modid > 0; modid = modfnext(modid)) printmod(modid); |