[BusyBox-cvs] busybox/modutils modprobe.c,1.17,1.18

Robert Griebl sandman at busybox.net
Tue Dec 3 22:41:40 UTC 2002


Update of /var/cvs/busybox/modutils
In directory winder:/tmp/cvs-serv10056

Modified Files:
	modprobe.c 
Log Message:
print an error message if we can't load a module


Index: modprobe.c
===================================================================
RCS file: /var/cvs/busybox/modutils/modprobe.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- modprobe.c	23 Aug 2002 07:45:26 -0000	1.17
+++ modprobe.c	3 Dec 2002 22:41:36 -0000	1.18
@@ -540,8 +540,10 @@
 	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;
 }
 
 




More information about the busybox-cvs mailing list