forked from Minki/linux
sun/sunqe: print MAC via printk format specifier
Print MAC/dev_addr via printk extended format specifier %pM instead of custom code. Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f794e7efe4
commit
d558950efc
@ -907,14 +907,8 @@ static int __devinit qec_ether_init(struct platform_device *op)
|
|||||||
|
|
||||||
dev_set_drvdata(&op->dev, qe);
|
dev_set_drvdata(&op->dev, qe);
|
||||||
|
|
||||||
printk(KERN_INFO "%s: qe channel[%d] ", dev->name, qe->channel);
|
printk(KERN_INFO "%s: qe channel[%d] %pM\n", dev->name, qe->channel,
|
||||||
for (i = 0; i < 6; i++)
|
dev->dev_addr);
|
||||||
printk ("%2.2x%c",
|
|
||||||
dev->dev_addr[i],
|
|
||||||
i == 5 ? ' ': ':');
|
|
||||||
printk("\n");
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
Loading…
Reference in New Issue
Block a user