summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/probing.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-04-06 16:51:17 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-04-06 16:51:17 +0000
commit0639e8c6ce3ffb911f94fde82a7174bf242c51ff (patch)
tree705af3a639ba21d412641ff03c1f641c6a1c1e54 /mdk-stage1/probing.c
parent2a6438dbeeee404a22b7d58916f095accc4e52cc (diff)
downloaddrakx-0639e8c6ce3ffb911f94fde82a7174bf242c51ff.tar
drakx-0639e8c6ce3ffb911f94fde82a7174bf242c51ff.tar.gz
drakx-0639e8c6ce3ffb911f94fde82a7174bf242c51ff.tar.bz2
drakx-0639e8c6ce3ffb911f94fde82a7174bf242c51ff.tar.xz
drakx-0639e8c6ce3ffb911f94fde82a7174bf242c51ff.zip
- do not print warning when we are in AUTOMATIC and insmod failed because of file-not-found in mar file (raid cards, etc)
- print "please include msg from Alt-F3" for this warning message to ease further support - print pci entry of cards found in te logs
Diffstat (limited to 'mdk-stage1/probing.c')
-rw-r--r--mdk-stage1/probing.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c
index 93c1614ba..d0ea315a1 100644
--- a/mdk-stage1/probing.c
+++ b/mdk-stage1/probing.c
@@ -61,7 +61,7 @@ struct media_info {
static void warning_insmod_failed(void)
{
- error_message("Warning, installation of driver failed.");
+ error_message("Warning, installation of driver failed. (please include msg from <Alt-F3> for bugreports)");
}
#ifndef DISABLE_NETWORK
@@ -149,7 +149,7 @@ static void probe_that_type(enum driver_type type)
while (1) {
int i, garb, vendor, device;
-
+
if (!fgets(buf, sizeof(buf), f)) break;
sscanf(buf, "%x %x", &garb, &vendor);
@@ -158,15 +158,15 @@ static void probe_that_type(enum driver_type type)
for (i = 0; i < len; i++) {
if (pcidb[i].vendor == vendor && pcidb[i].device == device) {
- log_message("PCI: found suggestion for %s (%s)", pcidb[i].name, pcidb[i].module);
+ log_message("PCI: device %x %x is \"%s\" (%s)", vendor, device, pcidb[i].name, pcidb[i].module);
#ifndef DISABLE_MEDIAS
if (type == SCSI_ADAPTERS) {
/* insmod takes time, let's use the wait message */
wait_message("Installing %s", pcidb[i].name);
garb = my_insmod(pcidb[i].module, SCSI_ADAPTERS, NULL);
remove_wait_message();
- if (garb)
- warning_insmod_failed();
+ if (garb && !(IS_AUTOMATIC && garb == -2))
+ warning_insmod_failed();
}
#endif
#ifndef DISABLE_NETWORK
@@ -174,8 +174,9 @@ static void probe_that_type(enum driver_type type)
/* insmod is quick, let's use the info message */
info_message("Found %s", pcidb[i].name);
prepare_intf_descr(pcidb[i].name);
- if (my_insmod(pcidb[i].module, NETWORK_DEVICES, NULL))
- warning_insmod_failed();
+ garb = my_insmod(pcidb[i].module, NETWORK_DEVICES, NULL);
+ if (garb && !(IS_AUTOMATIC && garb == -2))
+ warning_insmod_failed();
if (intf_descr_for_discover) /* for modules providing more than one net intf */
net_discovered_interface(NULL);
}