OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc2f799
)
amd/hplance.c: print MAC via printk format specifier
author
Danny Kukawka
<danny.kukawka@bisect.de>
Fri, 24 Feb 2012 03:45:53 +0000
(
03:45
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 24 Feb 2012 20:40:59 +0000
(15:40 -0500)
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>
drivers/net/ethernet/amd/hplance.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/amd/hplance.c
b/drivers/net/ethernet/amd/hplance.c
index
86aa0d5
..
4e2d68a
100644
(file)
--- a/
drivers/net/ethernet/amd/hplance.c
+++ b/
drivers/net/ethernet/amd/hplance.c
@@
-89,7
+89,6
@@
static int __devinit hplance_init_one(struct dio_dev *d,
{
struct net_device *dev;
int err = -ENOMEM;
- int i;
dev = alloc_etherdev(sizeof(struct hplance_private));
if (!dev)
@@
-107,13
+106,8
@@
static int __devinit hplance_init_one(struct dio_dev *d,
dio_set_drvdata(d, dev);
- printk(KERN_INFO "%s: %s; select code %d, addr %2.2x", dev->name, d->name, d->scode, dev->dev_addr[0]);
-
- for (i=1; i<6; i++) {
- printk(":%2.2x", dev->dev_addr[i]);
- }
-
- printk(", irq %d\n", d->ipl);
+ printk(KERN_INFO "%s: %s; select code %d, addr %pM, irq %d\n",
+ dev->name, d->name, d->scode, dev->dev_addr, d->ipl);
return 0;