summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-10-19 19:14:06 +0100
committerColin Guthrie <colin@mageia.org>2013-10-29 20:29:08 +0000
commit2f8c123ae7b4a4edf59c1b0435f3ffb89b08162c (patch)
treed8e53a0e7aad8df13ae6607d864d9abbd335ed09
parent33a891128a5ac6fa2c581ef4106fe569f47eb867 (diff)
downloaddrakx-2f8c123ae7b4a4edf59c1b0435f3ffb89b08162c.tar
drakx-2f8c123ae7b4a4edf59c1b0435f3ffb89b08162c.tar.gz
drakx-2f8c123ae7b4a4edf59c1b0435f3ffb89b08162c.tar.bz2
drakx-2f8c123ae7b4a4edf59c1b0435f3ffb89b08162c.tar.xz
drakx-2f8c123ae7b4a4edf59c1b0435f3ffb89b08162c.zip
stage1: Add debugging for net device name confusion.
Because dracut uses udev and because udev has likely already started the interface, we will see things out of order. Large sections of the probing code could probably be removed but for the time being we should probably consider removing this error message completely
-rw-r--r--mdk-stage1/probing.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c
index 1cdadd591..61a605651 100644
--- a/mdk-stage1/probing.c
+++ b/mdk-stage1/probing.c
@@ -111,7 +111,7 @@ void net_discovered_interface(char * intf_name)
}
if (!intf_name) {
if (net_intf_too_early_ptr >= net_intf_too_early_number) {
- log_message("NET: was expecting another network interface (broken net module?)");
+ log_message("NET: was expecting another network interface (broken net module?) [%d >= %d]", net_intf_too_early_ptr, net_intf_too_early_number);
return;
}
net_descriptions[net_descr_number].intf_name = net_intf_too_early_name[net_intf_too_early_ptr++];
@@ -283,6 +283,7 @@ void discovered_device(enum driver_type type, const char * description, const ch
#endif
#ifndef DISABLE_NETWORK
if (type == NETWORK_DEVICES) {
+ log_message("NET: Loading driver for network device %s", description);
wait_message("Loading driver for network device:\n \n%s", description);
prepare_intf_descr(description);
failed = my_modprobe(driver, NETWORK_DEVICES, NULL);