projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7127b58
)
print an error message if we can't load a module
author
Robert Griebl
<griebl@gmx.de>
Tue, 3 Dec 2002 22:41:36 +0000
(22:41 -0000)
committer
Robert Griebl
<griebl@gmx.de>
Tue, 3 Dec 2002 22:41:36 +0000
(22:41 -0000)
modutils/modprobe.c
patch
|
blob
|
history
diff --git
a/modutils/modprobe.c
b/modutils/modprobe.c
index 6a714da778c71af737945dcea008c3593ae8df95..99650ff032b290772ae7429a824ecee4a2c96050 100644
(file)
--- a/
modutils/modprobe.c
+++ b/
modutils/modprobe.c
@@
-540,8
+540,10
@@
extern int modprobe_main(int argc, char** argv)
if (optind >= argc)
error_msg_and_die ( "No module or pattern provided\n" );
- return mod_insert ( xstrdup ( argv [optind] ), argc - optind - 1, argv + optind + 1 ) ? \
- EXIT_FAILURE : EXIT_SUCCESS;
+ if ( mod_insert ( xstrdup ( argv [optind] ), argc - optind - 1, argv + optind + 1 ))
+ error_msg_and_die ( "failed to load module %s", argv [optind] );
+
+ return EXIT_SUCCESS;
}