diff options
author | jmb <jmb@FreeBSD.org> | 2000-06-20 19:04:22 +0000 |
---|---|---|
committer | jmb <jmb@FreeBSD.org> | 2000-06-20 19:04:22 +0000 |
commit | ad4e3e54183a16bd8ac16ad765ce05dba8c928ba (patch) | |
tree | 1aa74ce72cb1183ba63b7dc9fe75fbe8f0941bb2 /sbin/kldstat/kldstat.c | |
parent | f1f4c483fe069bb5205af783ab7286e199e13e50 (diff) | |
download | FreeBSD-src-ad4e3e54183a16bd8ac16ad765ce05dba8c928ba.zip FreeBSD-src-ad4e3e54183a16bd8ac16ad765ce05dba8c928ba.tar.gz |
display version number of each kld module when using
the -v flag.
Diffstat (limited to 'sbin/kldstat/kldstat.c')
-rw-r--r-- | sbin/kldstat/kldstat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/kldstat/kldstat.c b/sbin/kldstat/kldstat.c index 58c5388..cc3508f 100644 --- a/sbin/kldstat/kldstat.c +++ b/sbin/kldstat/kldstat.c @@ -53,7 +53,8 @@ printmod(int modid) if (modstat(modid, &stat) < 0) warn("can't stat module id %d", modid); else - printf("\t\t%2d %s\n", stat.id, stat.name); + printf("\t\t%2d %2d 0x%-8x %s\n", + stat.id, stat.refs, stat.version, stat.name); } static void printfile(int fileid, int verbose) @@ -70,7 +71,7 @@ static void printfile(int fileid, int verbose) if (verbose) { printf("\tContains modules:\n"); - printf("\t\tId Name\n"); + printf("\t\tId Refs Version%*c Name\n", POINTER_WIDTH - 7, ' '); for (modid = kldfirstmod(fileid); modid > 0; modid = modfnext(modid)) printmod(modid); |