aboutsummaryrefslogtreecommitdiff
path: root/sbin/kldload
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-01-09 15:35:35 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-01-09 15:35:35 +0000
commitffc5432ffc2ec20ca1cb79edf0ec7cdffa193cbe (patch)
tree3992543c47bbde1a6355f30e2ccda282d5ea7d07 /sbin/kldload
parent945508e42a08f435a936989d8d8340ae014f6000 (diff)
downloadsrc-ffc5432ffc2ec20ca1cb79edf0ec7cdffa193cbe.tar.gz
src-ffc5432ffc2ec20ca1cb79edf0ec7cdffa193cbe.zip
Fix error counting
Notes
Notes: svn path=/head/; revision=260484
Diffstat (limited to 'sbin/kldload')
-rw-r--r--sbin/kldload/kldload.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/kldload/kldload.c b/sbin/kldload/kldload.c
index dfde1f492ca0..6e88546bd4e3 100644
--- a/sbin/kldload/kldload.c
+++ b/sbin/kldload/kldload.c
@@ -181,14 +181,13 @@ main(int argc, char** argv)
printf("%s is already "
"loaded\n", argv[0]);
} else {
- if (errno == EEXIST) {
+ if (errno == EEXIST)
warnx("can't load %s: module "
"already loaded or "
"in kernel", argv[0]);
- } else {
+ else
warn("can't load %s", argv[0]);
- errors++;
- }
+ errors++;
}
} else {
if (verbose)