diff options
author | Joe Perches <joe@perches.com> | 2007-10-03 20:59:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:42 -0400 |
commit | 0795af5729b18218767fab27c44b1384f72dc9ad (patch) | |
tree | 67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/pcmcia/xirc2ps_cs.c | |
parent | 95ea36275f3c9a1d3d04c217b4b576c657c4e70e (diff) |
[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()
This is nicer than the MAC_FMT stuff.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pcmcia/xirc2ps_cs.c')
-rw-r--r-- | drivers/net/pcmcia/xirc2ps_cs.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c index d5c2d2c8c852..c3b69602e275 100644 --- a/drivers/net/pcmcia/xirc2ps_cs.c +++ b/drivers/net/pcmcia/xirc2ps_cs.c | |||
@@ -731,6 +731,7 @@ xirc2ps_config(struct pcmcia_device * link) | |||
731 | u_char buf[64]; | 731 | u_char buf[64]; |
732 | cistpl_lan_node_id_t *node_id = (cistpl_lan_node_id_t*)parse.funce.data; | 732 | cistpl_lan_node_id_t *node_id = (cistpl_lan_node_id_t*)parse.funce.data; |
733 | cistpl_cftable_entry_t *cf = &parse.cftable_entry; | 733 | cistpl_cftable_entry_t *cf = &parse.cftable_entry; |
734 | DECLARE_MAC_BUF(mac); | ||
734 | 735 | ||
735 | local->dingo_ccr = NULL; | 736 | local->dingo_ccr = NULL; |
736 | 737 | ||
@@ -1032,11 +1033,9 @@ xirc2ps_config(struct pcmcia_device * link) | |||
1032 | strcpy(local->node.dev_name, dev->name); | 1033 | strcpy(local->node.dev_name, dev->name); |
1033 | 1034 | ||
1034 | /* give some infos about the hardware */ | 1035 | /* give some infos about the hardware */ |
1035 | printk(KERN_INFO "%s: %s: port %#3lx, irq %d, hwaddr", | 1036 | printk(KERN_INFO "%s: %s: port %#3lx, irq %d, hwaddr %s\n", |
1036 | dev->name, local->manf_str,(u_long)dev->base_addr, (int)dev->irq); | 1037 | dev->name, local->manf_str,(u_long)dev->base_addr, (int)dev->irq, |
1037 | for (i = 0; i < 6; i++) | 1038 | print_mac(mac, dev->dev_addr)); |
1038 | printk("%c%02X", i?':':' ', dev->dev_addr[i]); | ||
1039 | printk("\n"); | ||
1040 | 1039 | ||
1041 | return 0; | 1040 | return 0; |
1042 | 1041 | ||