aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2010-11-20 11:14:06 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2010-11-20 11:14:06 +0000
commit0847b0cf1d65326d53614c7cb2e4b0958983ac60 (patch)
treec615069dff6dd581db2426fe2cae53662a0aebaf /sbin
parent9643d5342f5f69cf7529bbd1480ae70633c08419 (diff)
Notes
Diffstat (limited to 'sbin')
-rw-r--r--sbin/kldstat/kldstat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/kldstat/kldstat.c b/sbin/kldstat/kldstat.c
index 78182b9c444c..575fca80860f 100644
--- a/sbin/kldstat/kldstat.c
+++ b/sbin/kldstat/kldstat.c
@@ -50,14 +50,15 @@ printmod(int modid)
printf("\t\t%2d %s\n", stat.id, stat.name);
}
-static void printfile(int fileid, int verbose)
+static void
+printfile(int fileid, int verbose)
{
struct kld_file_stat stat;
int modid;
stat.version = sizeof(struct kld_file_stat);
if (kldstat(fileid, &stat) < 0)
- warn("can't stat file id %d", fileid);
+ err(1, "can't stat file id %d", fileid);
else
printf("%2d %4d %p %-8zx %s",
stat.id, stat.refs, stat.address, stat.size,