summaryrefslogtreecommitdiffstats
path: root/sbin/kldload/kldload.c
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-01-09 15:35:35 +0000
committerbapt <bapt@FreeBSD.org>2014-01-09 15:35:35 +0000
commitd2fc0c7e445fabe4014dd4256a9cccff649da738 (patch)
tree3992543c47bbde1a6355f30e2ccda282d5ea7d07 /sbin/kldload/kldload.c
parentb6388c86a4b0ffdde30f28b37599c956b9216605 (diff)
downloadFreeBSD-src-d2fc0c7e445fabe4014dd4256a9cccff649da738.zip
FreeBSD-src-d2fc0c7e445fabe4014dd4256a9cccff649da738.tar.gz
Fix error counting
Diffstat (limited to 'sbin/kldload/kldload.c')
-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 dfde1f4..6e88546 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)
OpenPOWER on IntegriCloud