提交 d558950e 编写于 作者: D Danny Kukawka 提交者: David S. Miller

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: NDanny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f794e7ef
...@@ -907,14 +907,8 @@ static int __devinit qec_ether_init(struct platform_device *op) ...@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册