Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: amd: mvme147: Fix probe banner message

Currently this driver prints this line with what looks like
a rogue format specifier when the device is probed:
[ 2.840000] eth%d: MVME147 at 0xfffe1800, irq 12, Hardware Address xx:xx:xx:xx:xx:xx

Change the printk() for netdev_info() and move it after the
registration has completed so it prints out the name of the
interface properly.

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Daniel Palmer and committed by
David S. Miller
82c5b531 a6ad589c

+3 -4
+3 -4
drivers/net/ethernet/amd/mvme147.c
··· 105 105 macaddr[3] = address&0xff; 106 106 eth_hw_addr_set(dev, macaddr); 107 107 108 - printk("%s: MVME147 at 0x%08lx, irq %d, Hardware Address %pM\n", 109 - dev->name, dev->base_addr, MVME147_LANCE_IRQ, 110 - dev->dev_addr); 111 - 112 108 lp = netdev_priv(dev); 113 109 lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 32K */ 114 110 if (!lp->ram) { ··· 133 137 free_netdev(dev); 134 138 return ERR_PTR(err); 135 139 } 140 + 141 + netdev_info(dev, "MVME147 at 0x%08lx, irq %d, Hardware Address %pM\n", 142 + dev->base_addr, MVME147_LANCE_IRQ, dev->dev_addr); 136 143 137 144 return dev; 138 145 }