Messages in this thread Patch in this message |  | | | From | Paul Gortmaker <> | | Subject | Re: Kernel tries to load eth1, while there is only 1 ethernet adapter | | Date | Sat, 15 Feb 1997 14:22:56 +1000 (EST) |
| |
[this probably belongs on linux-net, not linux-kernel, fwiw...]
> Matthew Harrell wrote: > > > : Feb 14 07:55:02 tower kernel: loading device 'eth1'... > > : ^^^^^^^^^^^^^^ > > > > I think what it really means is that it is checking for eth1. Notice the > > first message about loading eth0 and then it finds a ne2000? The message > > is deceptive, though. > > > > Yes, but it says LOADING and not checking. In the 2.0.xx kernel you do not > get that message. > > Conclusion: It's wrong, so it should be fixed. The kernel should say nothing > there. I hope that the coders agree with me.
I'd delete the message too, since all drivers have some sort of verbosity at init time. However I believe the original purpose of it was to give some sort of a message in case a module silently hangs the machine. In that case, simply changing "loading" to "probing for" should keep everybody happy. Furthermore, stick a KERN_INFO in front of it so you can keep it off the console depending on your log level.
Paul.
--- linux-2126/drivers/net/net_init.c Mon Feb 3 00:18:40 1997 +++ linux/drivers/net/net_init.c Sat Feb 15 14:17:02 1997 @@ -324,7 +324,7 @@ for (i = 0; i < MAX_ETH_CARDS; ++i) if (ethdev_index[i] == NULL) { sprintf(dev->name, "eth%d", i); - printk("loading device '%s'...\n", dev->name); + printk(KERN_INFO "probing for device '%s'...\n", dev->name); ethdev_index[i] = dev; break; }
|  |