summaryrefslogtreecommitdiff
path: root/modutils/modprobe.c
diff options
context:
space:
mode:
authorRobert Griebl <griebl@gmx.de>2002-12-03 22:41:36 +0000
committerRobert Griebl <griebl@gmx.de>2002-12-03 22:41:36 +0000
commit3ba7ceebfc8035fa618c99b27f6995a5bc6997ac (patch)
treeecde0019366e88ddd3b465e4bf66278f33bdd650 /modutils/modprobe.c
parent7127b58baa864f93e32bc8a800ebc9b7e9706aac (diff)
downloadbusybox-w32-3ba7ceebfc8035fa618c99b27f6995a5bc6997ac.tar.gz
busybox-w32-3ba7ceebfc8035fa618c99b27f6995a5bc6997ac.tar.bz2
busybox-w32-3ba7ceebfc8035fa618c99b27f6995a5bc6997ac.zip
print an error message if we can't load a module
Diffstat (limited to 'modutils/modprobe.c')
-rw-r--r--modutils/modprobe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index 6a714da77..99650ff03 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -540,8 +540,10 @@ extern int modprobe_main(int argc, char** argv)
540 if (optind >= argc) 540 if (optind >= argc)
541 error_msg_and_die ( "No module or pattern provided\n" ); 541 error_msg_and_die ( "No module or pattern provided\n" );
542 542
543 return mod_insert ( xstrdup ( argv [optind] ), argc - optind - 1, argv + optind + 1 ) ? \ 543 if ( mod_insert ( xstrdup ( argv [optind] ), argc - optind - 1, argv + optind + 1 ))
544 EXIT_FAILURE : EXIT_SUCCESS; 544 error_msg_and_die ( "failed to load module %s", argv [optind] );
545
546 return EXIT_SUCCESS;
545} 547}
546 548
547 549