linux/drivers/net/e1000e
Frans Pop 6c2a9efade e1000e: avoid duplicated output of device name in kernel warning
With 2.6.27-rc3 I noticed the following messages in my boot log:

0000:01:00.0: 0000:01:00.0: Warning: detected DSPD enabled in EEPROM
0000:01:00.0: eth0: (PCI Express:2.5GB/s:Width x1) 00:16:76:04:ff:09

The second seems correct, but the first has a silly repetition of the
PCI device before the actual message. The message originates from
e1000_eeprom_checks in e1000e/netdev.c.

With this patch below the first message becomes

  e1000e 0000:01:00.0: Warning: detected DSPD enabled in EEPROM

which makes it similar to directly preceding messages.

Use dev_warn instead of e_warn in e1000_eeprom_checks() as the interface
name has not yet been assigned at that point.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Frans Pop <elendil@planet.nl>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2008-09-24 22:05:26 -04:00
..
82571.c e1000e: add support for new 82574L part 2008-09-03 10:08:13 -04:00
Makefile e1000e: reformat comment blocks, cosmetic changes only 2008-03-28 22:14:56 -04:00
defines.h e1000e: add support for new 82574L part 2008-09-03 10:08:13 -04:00
e1000.h e1000e: add support for new 82574L part 2008-09-03 10:08:13 -04:00
es2lan.c e1000e: add support for new 82574L part 2008-09-03 10:08:13 -04:00
ethtool.c e1000e: add support for new 82574L part 2008-09-03 10:08:13 -04:00
hw.h e1000e: add support for new 82574L part 2008-09-03 10:08:13 -04:00
ich8lan.c e1000e: remove failed request for sw/fw/hw flag 2008-09-24 20:48:51 -04:00
lib.c e1000e: add support for new 82574L part 2008-09-03 10:08:13 -04:00
netdev.c e1000e: avoid duplicated output of device name in kernel warning 2008-09-24 22:05:26 -04:00
param.c e1000e: add support for new 82574L part 2008-09-03 10:08:13 -04:00
phy.c e1000e: add support for new 82574L part 2008-09-03 10:08:13 -04:00