aboutsummaryrefslogtreecommitdiff
path: root/sbin/kldload
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2017-02-18 18:57:29 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2017-02-18 18:57:29 +0000
commitdc3c93a954d86ff995d9a57edd07cdea13e8c641 (patch)
tree60f8eefa53a36a9250a51cce0bb55014a76c0b2a /sbin/kldload
parentda1b1e8eca8bfc759a164d08cbdbce079aab3366 (diff)
downloadsrc-dc3c93a954d86ff995d9a57edd07cdea13e8c641.tar.gz
src-dc3c93a954d86ff995d9a57edd07cdea13e8c641.zip
Fix the last case when kldload(8) wasn't printing the name of the module
that failed to load.
Notes
Notes: svn path=/head/; revision=313920
Diffstat (limited to 'sbin/kldload')
-rw-r--r--sbin/kldload/kldload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/kldload/kldload.c b/sbin/kldload/kldload.c
index cd31c5289b46..39a4114887f8 100644
--- a/sbin/kldload/kldload.c
+++ b/sbin/kldload/kldload.c
@@ -177,9 +177,9 @@ main(int argc, char** argv)
break;
case ENOEXEC:
warnx("an error occurred while "
- "loading the module. "
+ "loading module %s. "
"Please check dmesg(8) for "
- "more details.");
+ "more details.", argv[0]);
break;
default:
warn("can't load %s", argv[0]);