From 49d815276d8ef491c7a20888331787411d548fb8 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 25 Jan 2001 15:06:13 +0000 Subject: print warning message when insmod of PCI-detected device fails --- mdk-stage1/probing.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'mdk-stage1/probing.c') diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c index 9898d35f0..d67719041 100644 --- a/mdk-stage1/probing.c +++ b/mdk-stage1/probing.c @@ -49,6 +49,12 @@ #include "probing.h" +static void warning_insmod_failed(void) +{ + error_message("Warning, installation of driver failed."); +} + + void probe_that_type(enum driver_type type) { if (IS_EXPERT) @@ -100,15 +106,18 @@ void probe_that_type(enum driver_type type) if (type == SCSI_ADAPTERS) { /* insmod takes time, let's use the wait message */ wait_message("Installing %s", pcidb[i].name); - my_insmod(pcidb[i].module, SCSI_ADAPTERS, NULL); + garb = my_insmod(pcidb[i].module, SCSI_ADAPTERS, NULL); remove_wait_message(); + if (garb) + warning_insmod_failed(); } #endif #ifndef DISABLE_NETWORK if (type == NETWORK_DEVICES) { /* insmod is quick, let's use the info message */ info_message("Found %s", pcidb[i].name); - my_insmod(pcidb[i].module, NETWORK_DEVICES, NULL); + if (my_insmod(pcidb[i].module, NETWORK_DEVICES, NULL)) + warning_insmod_failed(); } #endif } -- cgit v1.2.1