[BusyBox-cvs] busybox/modutils modprobe.c,1.17,1.18
Robert Griebl
sandman at busybox.net
Tue Dec 3 22:41:40 UTC 2002
- Previous message: [BusyBox-cvs] busybox/editors vi.c,1.26,1.27
- Next message: [BusyBox-cvs] busybox/shell ash.c,1.62,1.63 cmdedit.c,1.73,1.74 cmdedit.h,1.12,1.13 config.in,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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;
}
- Previous message: [BusyBox-cvs] busybox/editors vi.c,1.26,1.27
- Next message: [BusyBox-cvs] busybox/shell ash.c,1.62,1.63 cmdedit.c,1.73,1.74 cmdedit.h,1.12,1.13 config.in,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the busybox-cvs
mailing list