summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/kldload/kldload.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sbin/kldload/kldload.c b/sbin/kldload/kldload.c
index 84589eb..dfde1f4 100644
--- a/sbin/kldload/kldload.c
+++ b/sbin/kldload/kldload.c
@@ -181,8 +181,14 @@ main(int argc, char** argv)
printf("%s is already "
"loaded\n", argv[0]);
} else {
- warn("can't load %s", argv[0]);
- errors++;
+ if (errno == EEXIST) {
+ warnx("can't load %s: module "
+ "already loaded or "
+ "in kernel", argv[0]);
+ } else {
+ warn("can't load %s", argv[0]);
+ errors++;
+ }
}
} else {
if (verbose)
OpenPOWER on IntegriCloud