diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-27 18:59:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-27 20:06:18 -0400 |
commit | e174961ca1a0b28f7abf0be47973ad57cb74e5f0 (patch) | |
tree | e8f74ecd420a0e380a71670e5aec5c2a0c15640a /drivers/net/pcmcia | |
parent | 0c68ae2605dbcf67414d8d1f19af93be44b355fb (diff) |
net: convert print_mac to %pM
This converts pretty much everything to print_mac. There were
a few things that had conflicts which I have just dropped for
now, no harm done.
I've built an allyesconfig with this and looked at the files
that weren't built very carefully, but it's a huge patch.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pcmcia')
-rw-r--r-- | drivers/net/pcmcia/3c574_cs.c | 5 | ||||
-rw-r--r-- | drivers/net/pcmcia/3c589_cs.c | 5 | ||||
-rw-r--r-- | drivers/net/pcmcia/axnet_cs.c | 5 | ||||
-rw-r--r-- | drivers/net/pcmcia/fmvj18x_cs.c | 5 | ||||
-rw-r--r-- | drivers/net/pcmcia/nmclan_cs.c | 5 | ||||
-rw-r--r-- | drivers/net/pcmcia/pcnet_cs.c | 3 | ||||
-rw-r--r-- | drivers/net/pcmcia/smc91c92_cs.c | 5 | ||||
-rw-r--r-- | drivers/net/pcmcia/xirc2ps_cs.c | 5 |
8 files changed, 15 insertions, 23 deletions
diff --git a/drivers/net/pcmcia/3c574_cs.c b/drivers/net/pcmcia/3c574_cs.c index 08c4dd89607..dcbb11ab98d 100644 --- a/drivers/net/pcmcia/3c574_cs.c +++ b/drivers/net/pcmcia/3c574_cs.c | |||
@@ -345,7 +345,6 @@ static int tc574_config(struct pcmcia_device *link) | |||
345 | __be16 *phys_addr; | 345 | __be16 *phys_addr; |
346 | char *cardname; | 346 | char *cardname; |
347 | __u32 config; | 347 | __u32 config; |
348 | DECLARE_MAC_BUF(mac); | ||
349 | 348 | ||
350 | phys_addr = (__be16 *)dev->dev_addr; | 349 | phys_addr = (__be16 *)dev->dev_addr; |
351 | 350 | ||
@@ -463,9 +462,9 @@ static int tc574_config(struct pcmcia_device *link) | |||
463 | strcpy(lp->node.dev_name, dev->name); | 462 | strcpy(lp->node.dev_name, dev->name); |
464 | 463 | ||
465 | printk(KERN_INFO "%s: %s at io %#3lx, irq %d, " | 464 | printk(KERN_INFO "%s: %s at io %#3lx, irq %d, " |
466 | "hw_addr %s.\n", | 465 | "hw_addr %pM.\n", |
467 | dev->name, cardname, dev->base_addr, dev->irq, | 466 | dev->name, cardname, dev->base_addr, dev->irq, |
468 | print_mac(mac, dev->dev_addr)); | 467 | dev->dev_addr); |
469 | printk(" %dK FIFO split %s Rx:Tx, %sMII interface.\n", | 468 | printk(" %dK FIFO split %s Rx:Tx, %sMII interface.\n", |
470 | 8 << config & Ram_size, | 469 | 8 << config & Ram_size, |
471 | ram_split[(config & Ram_split) >> Ram_split_shift], | 470 | ram_split[(config & Ram_split) >> Ram_split_shift], |
diff --git a/drivers/net/pcmcia/3c589_cs.c b/drivers/net/pcmcia/3c589_cs.c index c235cdba69c..5882109be77 100644 --- a/drivers/net/pcmcia/3c589_cs.c +++ b/drivers/net/pcmcia/3c589_cs.c | |||
@@ -255,7 +255,6 @@ static int tc589_config(struct pcmcia_device *link) | |||
255 | int last_fn, last_ret, i, j, multi = 0, fifo; | 255 | int last_fn, last_ret, i, j, multi = 0, fifo; |
256 | unsigned int ioaddr; | 256 | unsigned int ioaddr; |
257 | char *ram_split[] = {"5:3", "3:1", "1:1", "3:5"}; | 257 | char *ram_split[] = {"5:3", "3:1", "1:1", "3:5"}; |
258 | DECLARE_MAC_BUF(mac); | ||
259 | 258 | ||
260 | DEBUG(0, "3c589_config(0x%p)\n", link); | 259 | DEBUG(0, "3c589_config(0x%p)\n", link); |
261 | 260 | ||
@@ -333,9 +332,9 @@ static int tc589_config(struct pcmcia_device *link) | |||
333 | strcpy(lp->node.dev_name, dev->name); | 332 | strcpy(lp->node.dev_name, dev->name); |
334 | 333 | ||
335 | printk(KERN_INFO "%s: 3Com 3c%s, io %#3lx, irq %d, " | 334 | printk(KERN_INFO "%s: 3Com 3c%s, io %#3lx, irq %d, " |
336 | "hw_addr %s\n", | 335 | "hw_addr %pM\n", |
337 | dev->name, (multi ? "562" : "589"), dev->base_addr, dev->irq, | 336 | dev->name, (multi ? "562" : "589"), dev->base_addr, dev->irq, |
338 | print_mac(mac, dev->dev_addr)); | 337 | dev->dev_addr); |
339 | printk(KERN_INFO " %dK FIFO split %s Rx:Tx, %s xcvr\n", | 338 | printk(KERN_INFO " %dK FIFO split %s Rx:Tx, %s xcvr\n", |
340 | (fifo & 7) ? 32 : 8, ram_split[(fifo >> 16) & 3], | 339 | (fifo & 7) ? 32 : 8, ram_split[(fifo >> 16) & 3], |
341 | if_names[dev->if_port]); | 340 | if_names[dev->if_port]); |
diff --git a/drivers/net/pcmcia/axnet_cs.c b/drivers/net/pcmcia/axnet_cs.c index b37a498939a..889f1bdb085 100644 --- a/drivers/net/pcmcia/axnet_cs.c +++ b/drivers/net/pcmcia/axnet_cs.c | |||
@@ -321,7 +321,6 @@ static int axnet_config(struct pcmcia_device *link) | |||
321 | struct net_device *dev = link->priv; | 321 | struct net_device *dev = link->priv; |
322 | axnet_dev_t *info = PRIV(dev); | 322 | axnet_dev_t *info = PRIV(dev); |
323 | int i, j, last_ret, last_fn; | 323 | int i, j, last_ret, last_fn; |
324 | DECLARE_MAC_BUF(mac); | ||
325 | 324 | ||
326 | DEBUG(0, "axnet_config(0x%p)\n", link); | 325 | DEBUG(0, "axnet_config(0x%p)\n", link); |
327 | 326 | ||
@@ -397,10 +396,10 @@ static int axnet_config(struct pcmcia_device *link) | |||
397 | strcpy(info->node.dev_name, dev->name); | 396 | strcpy(info->node.dev_name, dev->name); |
398 | 397 | ||
399 | printk(KERN_INFO "%s: Asix AX88%d90: io %#3lx, irq %d, " | 398 | printk(KERN_INFO "%s: Asix AX88%d90: io %#3lx, irq %d, " |
400 | "hw_addr %s\n", | 399 | "hw_addr %pM\n", |
401 | dev->name, ((info->flags & IS_AX88790) ? 7 : 1), | 400 | dev->name, ((info->flags & IS_AX88790) ? 7 : 1), |
402 | dev->base_addr, dev->irq, | 401 | dev->base_addr, dev->irq, |
403 | print_mac(mac, dev->dev_addr)); | 402 | dev->dev_addr); |
404 | if (info->phy_id != -1) { | 403 | if (info->phy_id != -1) { |
405 | DEBUG(0, " MII transceiver at index %d, status %x.\n", info->phy_id, j); | 404 | DEBUG(0, " MII transceiver at index %d, status %x.\n", info->phy_id, j); |
406 | } else { | 405 | } else { |
diff --git a/drivers/net/pcmcia/fmvj18x_cs.c b/drivers/net/pcmcia/fmvj18x_cs.c index 69d916daa7b..465e4ad363c 100644 --- a/drivers/net/pcmcia/fmvj18x_cs.c +++ b/drivers/net/pcmcia/fmvj18x_cs.c | |||
@@ -348,7 +348,6 @@ static int fmvj18x_config(struct pcmcia_device *link) | |||
348 | cardtype_t cardtype; | 348 | cardtype_t cardtype; |
349 | char *card_name = "unknown"; | 349 | char *card_name = "unknown"; |
350 | u_char *node_id; | 350 | u_char *node_id; |
351 | DECLARE_MAC_BUF(mac); | ||
352 | 351 | ||
353 | DEBUG(0, "fmvj18x_config(0x%p)\n", link); | 352 | DEBUG(0, "fmvj18x_config(0x%p)\n", link); |
354 | 353 | ||
@@ -539,9 +538,9 @@ static int fmvj18x_config(struct pcmcia_device *link) | |||
539 | 538 | ||
540 | /* print current configuration */ | 539 | /* print current configuration */ |
541 | printk(KERN_INFO "%s: %s, sram %s, port %#3lx, irq %d, " | 540 | printk(KERN_INFO "%s: %s, sram %s, port %#3lx, irq %d, " |
542 | "hw_addr %s\n", | 541 | "hw_addr %pM\n", |
543 | dev->name, card_name, sram_config == 0 ? "4K TX*2" : "8K TX*2", | 542 | dev->name, card_name, sram_config == 0 ? "4K TX*2" : "8K TX*2", |
544 | dev->base_addr, dev->irq, print_mac(mac, dev->dev_addr)); | 543 | dev->base_addr, dev->irq, dev->dev_addr); |
545 | 544 | ||
546 | return 0; | 545 | return 0; |
547 | 546 | ||
diff --git a/drivers/net/pcmcia/nmclan_cs.c b/drivers/net/pcmcia/nmclan_cs.c index 448cd40aeba..35a1d1024c5 100644 --- a/drivers/net/pcmcia/nmclan_cs.c +++ b/drivers/net/pcmcia/nmclan_cs.c | |||
@@ -659,7 +659,6 @@ static int nmclan_config(struct pcmcia_device *link) | |||
659 | u_char buf[64]; | 659 | u_char buf[64]; |
660 | int i, last_ret, last_fn; | 660 | int i, last_ret, last_fn; |
661 | unsigned int ioaddr; | 661 | unsigned int ioaddr; |
662 | DECLARE_MAC_BUF(mac); | ||
663 | 662 | ||
664 | DEBUG(0, "nmclan_config(0x%p)\n", link); | 663 | DEBUG(0, "nmclan_config(0x%p)\n", link); |
665 | 664 | ||
@@ -719,9 +718,9 @@ static int nmclan_config(struct pcmcia_device *link) | |||
719 | strcpy(lp->node.dev_name, dev->name); | 718 | strcpy(lp->node.dev_name, dev->name); |
720 | 719 | ||
721 | printk(KERN_INFO "%s: nmclan: port %#3lx, irq %d, %s port," | 720 | printk(KERN_INFO "%s: nmclan: port %#3lx, irq %d, %s port," |
722 | " hw_addr %s\n", | 721 | " hw_addr %pM\n", |
723 | dev->name, dev->base_addr, dev->irq, if_names[dev->if_port], | 722 | dev->name, dev->base_addr, dev->irq, if_names[dev->if_port], |
724 | print_mac(mac, dev->dev_addr)); | 723 | dev->dev_addr); |
725 | return 0; | 724 | return 0; |
726 | 725 | ||
727 | cs_failed: | 726 | cs_failed: |
diff --git a/drivers/net/pcmcia/pcnet_cs.c b/drivers/net/pcmcia/pcnet_cs.c index e40d6301aa7..69625373a8e 100644 --- a/drivers/net/pcmcia/pcnet_cs.c +++ b/drivers/net/pcmcia/pcnet_cs.c | |||
@@ -554,7 +554,6 @@ static int pcnet_config(struct pcmcia_device *link) | |||
554 | int last_ret, last_fn, start_pg, stop_pg, cm_offset; | 554 | int last_ret, last_fn, start_pg, stop_pg, cm_offset; |
555 | int has_shmem = 0; | 555 | int has_shmem = 0; |
556 | hw_info_t *local_hw_info; | 556 | hw_info_t *local_hw_info; |
557 | DECLARE_MAC_BUF(mac); | ||
558 | 557 | ||
559 | DEBUG(0, "pcnet_config(0x%p)\n", link); | 558 | DEBUG(0, "pcnet_config(0x%p)\n", link); |
560 | 559 | ||
@@ -675,7 +674,7 @@ static int pcnet_config(struct pcmcia_device *link) | |||
675 | printk (" mem %#5lx,", dev->mem_start); | 674 | printk (" mem %#5lx,", dev->mem_start); |
676 | if (info->flags & HAS_MISC_REG) | 675 | if (info->flags & HAS_MISC_REG) |
677 | printk(" %s xcvr,", if_names[dev->if_port]); | 676 | printk(" %s xcvr,", if_names[dev->if_port]); |
678 | printk(" hw_addr %s\n", print_mac(mac, dev->dev_addr)); | 677 | printk(" hw_addr %pM\n", dev->dev_addr); |
679 | return 0; | 678 | return 0; |
680 | 679 | ||
681 | cs_failed: | 680 | cs_failed: |
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c index c74d6656d26..fccd53ef3c6 100644 --- a/drivers/net/pcmcia/smc91c92_cs.c +++ b/drivers/net/pcmcia/smc91c92_cs.c | |||
@@ -949,7 +949,6 @@ static int smc91c92_config(struct pcmcia_device *link) | |||
949 | int i, j, rev; | 949 | int i, j, rev; |
950 | unsigned int ioaddr; | 950 | unsigned int ioaddr; |
951 | u_long mir; | 951 | u_long mir; |
952 | DECLARE_MAC_BUF(mac); | ||
953 | 952 | ||
954 | DEBUG(0, "smc91c92_config(0x%p)\n", link); | 953 | DEBUG(0, "smc91c92_config(0x%p)\n", link); |
955 | 954 | ||
@@ -1062,9 +1061,9 @@ static int smc91c92_config(struct pcmcia_device *link) | |||
1062 | strcpy(smc->node.dev_name, dev->name); | 1061 | strcpy(smc->node.dev_name, dev->name); |
1063 | 1062 | ||
1064 | printk(KERN_INFO "%s: smc91c%s rev %d: io %#3lx, irq %d, " | 1063 | printk(KERN_INFO "%s: smc91c%s rev %d: io %#3lx, irq %d, " |
1065 | "hw_addr %s\n", | 1064 | "hw_addr %pM\n", |
1066 | dev->name, name, (rev & 0x0f), dev->base_addr, dev->irq, | 1065 | dev->name, name, (rev & 0x0f), dev->base_addr, dev->irq, |
1067 | print_mac(mac, dev->dev_addr)); | 1066 | dev->dev_addr); |
1068 | 1067 | ||
1069 | if (rev > 0) { | 1068 | if (rev > 0) { |
1070 | if (mir & 0x3ff) | 1069 | if (mir & 0x3ff) |
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c index e1fd585e713..c45c3064fee 100644 --- a/drivers/net/pcmcia/xirc2ps_cs.c +++ b/drivers/net/pcmcia/xirc2ps_cs.c | |||
@@ -772,7 +772,6 @@ xirc2ps_config(struct pcmcia_device * link) | |||
772 | int err, i; | 772 | int err, i; |
773 | u_char buf[64]; | 773 | u_char buf[64]; |
774 | cistpl_lan_node_id_t *node_id = (cistpl_lan_node_id_t*)parse.funce.data; | 774 | cistpl_lan_node_id_t *node_id = (cistpl_lan_node_id_t*)parse.funce.data; |
775 | DECLARE_MAC_BUF(mac); | ||
776 | 775 | ||
777 | local->dingo_ccr = NULL; | 776 | local->dingo_ccr = NULL; |
778 | 777 | ||
@@ -1051,9 +1050,9 @@ xirc2ps_config(struct pcmcia_device * link) | |||
1051 | strcpy(local->node.dev_name, dev->name); | 1050 | strcpy(local->node.dev_name, dev->name); |
1052 | 1051 | ||
1053 | /* give some infos about the hardware */ | 1052 | /* give some infos about the hardware */ |
1054 | printk(KERN_INFO "%s: %s: port %#3lx, irq %d, hwaddr %s\n", | 1053 | printk(KERN_INFO "%s: %s: port %#3lx, irq %d, hwaddr %pM\n", |
1055 | dev->name, local->manf_str,(u_long)dev->base_addr, (int)dev->irq, | 1054 | dev->name, local->manf_str,(u_long)dev->base_addr, (int)dev->irq, |
1056 | print_mac(mac, dev->dev_addr)); | 1055 | dev->dev_addr); |
1057 | 1056 | ||
1058 | return 0; | 1057 | return 0; |
1059 | 1058 | ||