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/tokenring | |
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/tokenring')
-rw-r--r-- | drivers/net/tokenring/abyss.c | 4 | ||||
-rw-r--r-- | drivers/net/tokenring/ibmtr.c | 10 | ||||
-rw-r--r-- | drivers/net/tokenring/lanstreamer.c | 35 | ||||
-rw-r--r-- | drivers/net/tokenring/madgemc.c | 10 | ||||
-rw-r--r-- | drivers/net/tokenring/olympic.c | 50 | ||||
-rw-r--r-- | drivers/net/tokenring/proteon.c | 5 | ||||
-rw-r--r-- | drivers/net/tokenring/skisa.c | 5 | ||||
-rw-r--r-- | drivers/net/tokenring/tmspci.c | 5 |
8 files changed, 44 insertions, 80 deletions
diff --git a/drivers/net/tokenring/abyss.c b/drivers/net/tokenring/abyss.c index 7a7de0469eae..b566d6d79ecd 100644 --- a/drivers/net/tokenring/abyss.c +++ b/drivers/net/tokenring/abyss.c | |||
@@ -99,7 +99,6 @@ static int __devinit abyss_attach(struct pci_dev *pdev, const struct pci_device_ | |||
99 | struct net_local *tp; | 99 | struct net_local *tp; |
100 | int ret, pci_irq_line; | 100 | int ret, pci_irq_line; |
101 | unsigned long pci_ioaddr; | 101 | unsigned long pci_ioaddr; |
102 | DECLARE_MAC_BUF(mac); | ||
103 | 102 | ||
104 | if (versionprinted++ == 0) | 103 | if (versionprinted++ == 0) |
105 | printk("%s", version); | 104 | printk("%s", version); |
@@ -147,8 +146,7 @@ static int __devinit abyss_attach(struct pci_dev *pdev, const struct pci_device_ | |||
147 | 146 | ||
148 | abyss_read_eeprom(dev); | 147 | abyss_read_eeprom(dev); |
149 | 148 | ||
150 | printk("%s: Ring Station Address: %s\n", | 149 | printk("%s: Ring Station Address: %pM\n", dev->name, dev->dev_addr); |
151 | dev->name, print_mac(mac, dev->dev_addr)); | ||
152 | 150 | ||
153 | tp = netdev_priv(dev); | 151 | tp = netdev_priv(dev); |
154 | tp->setnselout = abyss_setnselout_pins; | 152 | tp->setnselout = abyss_setnselout_pins; |
diff --git a/drivers/net/tokenring/ibmtr.c b/drivers/net/tokenring/ibmtr.c index e494c63bfbd9..ad978982eee4 100644 --- a/drivers/net/tokenring/ibmtr.c +++ b/drivers/net/tokenring/ibmtr.c | |||
@@ -389,7 +389,6 @@ static int __devinit ibmtr_probe1(struct net_device *dev, int PIOaddr) | |||
389 | unsigned long timeout; | 389 | unsigned long timeout; |
390 | static int version_printed; | 390 | static int version_printed; |
391 | #endif | 391 | #endif |
392 | DECLARE_MAC_BUF(mac); | ||
393 | 392 | ||
394 | /* Query the adapter PIO base port which will return | 393 | /* Query the adapter PIO base port which will return |
395 | * indication of where MMIO was placed. We also have a | 394 | * indication of where MMIO was placed. We also have a |
@@ -703,8 +702,7 @@ static int __devinit ibmtr_probe1(struct net_device *dev, int PIOaddr) | |||
703 | channel_def[cardpresent - 1], adapter_def(ti->adapter_type)); | 702 | channel_def[cardpresent - 1], adapter_def(ti->adapter_type)); |
704 | DPRINTK("using irq %d, PIOaddr %hx, %dK shared RAM.\n", | 703 | DPRINTK("using irq %d, PIOaddr %hx, %dK shared RAM.\n", |
705 | irq, PIOaddr, ti->mapped_ram_size / 2); | 704 | irq, PIOaddr, ti->mapped_ram_size / 2); |
706 | DPRINTK("Hardware address : %s\n", | 705 | DPRINTK("Hardware address : %pM\n", dev->dev_addr); |
707 | print_mac(mac, dev->dev_addr)); | ||
708 | if (ti->page_mask) | 706 | if (ti->page_mask) |
709 | DPRINTK("Shared RAM paging enabled. " | 707 | DPRINTK("Shared RAM paging enabled. " |
710 | "Page size: %uK Shared Ram size %dK\n", | 708 | "Page size: %uK Shared Ram size %dK\n", |
@@ -1741,8 +1739,6 @@ static void tr_rx(struct net_device *dev) | |||
1741 | void __iomem *trhhdr = rbuf + offsetof(struct rec_buf, data); | 1739 | void __iomem *trhhdr = rbuf + offsetof(struct rec_buf, data); |
1742 | u8 saddr[6]; | 1740 | u8 saddr[6]; |
1743 | u8 daddr[6]; | 1741 | u8 daddr[6]; |
1744 | DECLARE_MAC_BUF(mac); | ||
1745 | DECLARE_MAC_BUF(mac2); | ||
1746 | int i; | 1742 | int i; |
1747 | for (i = 0 ; i < 6 ; i++) | 1743 | for (i = 0 ; i < 6 ; i++) |
1748 | saddr[i] = readb(trhhdr + SADDR_OFST + i); | 1744 | saddr[i] = readb(trhhdr + SADDR_OFST + i); |
@@ -1750,9 +1746,9 @@ static void tr_rx(struct net_device *dev) | |||
1750 | daddr[i] = readb(trhhdr + DADDR_OFST + i); | 1746 | daddr[i] = readb(trhhdr + DADDR_OFST + i); |
1751 | DPRINTK("Probably non-IP frame received.\n"); | 1747 | DPRINTK("Probably non-IP frame received.\n"); |
1752 | DPRINTK("ssap: %02X dsap: %02X " | 1748 | DPRINTK("ssap: %02X dsap: %02X " |
1753 | "saddr: %s daddr: %$s\n", | 1749 | "saddr: %pM daddr: %pM\n", |
1754 | readb(llc + SSAP_OFST), readb(llc + DSAP_OFST), | 1750 | readb(llc + SSAP_OFST), readb(llc + DSAP_OFST), |
1755 | print_mac(mac, saddr), print_mac(mac2, daddr)); | 1751 | saddr, daddr); |
1756 | } | 1752 | } |
1757 | #endif | 1753 | #endif |
1758 | 1754 | ||
diff --git a/drivers/net/tokenring/lanstreamer.c b/drivers/net/tokenring/lanstreamer.c index 59d1673f9387..bd70e818212a 100644 --- a/drivers/net/tokenring/lanstreamer.c +++ b/drivers/net/tokenring/lanstreamer.c | |||
@@ -446,9 +446,6 @@ static int streamer_reset(struct net_device *dev) | |||
446 | unsigned int uaa_addr; | 446 | unsigned int uaa_addr; |
447 | struct sk_buff *skb = NULL; | 447 | struct sk_buff *skb = NULL; |
448 | __u16 misr; | 448 | __u16 misr; |
449 | #if STREAMER_DEBUG | ||
450 | DECLARE_MAC_BUF(mac); | ||
451 | #endif | ||
452 | 449 | ||
453 | streamer_priv = netdev_priv(dev); | 450 | streamer_priv = netdev_priv(dev); |
454 | streamer_mmio = streamer_priv->streamer_mmio; | 451 | streamer_mmio = streamer_priv->streamer_mmio; |
@@ -577,8 +574,7 @@ static int streamer_reset(struct net_device *dev) | |||
577 | dev->dev_addr[i+1]= addr & 0xff; | 574 | dev->dev_addr[i+1]= addr & 0xff; |
578 | } | 575 | } |
579 | #if STREAMER_DEBUG | 576 | #if STREAMER_DEBUG |
580 | printk("Adapter address: %s\n", | 577 | printk("Adapter address: %pM\n", dev->dev_addr); |
581 | print_mac(mac, dev->dev_addr)); | ||
582 | #endif | 578 | #endif |
583 | } | 579 | } |
584 | return 0; | 580 | return 0; |
@@ -1538,7 +1534,6 @@ static void streamer_arb_cmd(struct net_device *dev) | |||
1538 | 1534 | ||
1539 | #if STREAMER_NETWORK_MONITOR | 1535 | #if STREAMER_NETWORK_MONITOR |
1540 | struct trh_hdr *mac_hdr; | 1536 | struct trh_hdr *mac_hdr; |
1541 | DECLARE_MAC_BUF(mac); | ||
1542 | #endif | 1537 | #endif |
1543 | 1538 | ||
1544 | writew(streamer_priv->arb, streamer_mmio + LAPA); | 1539 | writew(streamer_priv->arb, streamer_mmio + LAPA); |
@@ -1611,11 +1606,11 @@ static void streamer_arb_cmd(struct net_device *dev) | |||
1611 | dev->name); | 1606 | dev->name); |
1612 | mac_hdr = tr_hdr(mac_frame); | 1607 | mac_hdr = tr_hdr(mac_frame); |
1613 | printk(KERN_WARNING | 1608 | printk(KERN_WARNING |
1614 | "%s: MAC Frame Dest. Addr: %s\n", | 1609 | "%s: MAC Frame Dest. Addr: %pM\n", |
1615 | dev->name, print_mac(mac, mac_hdr->daddr)); | 1610 | dev->name, mac_hdr->daddr); |
1616 | printk(KERN_WARNING | 1611 | printk(KERN_WARNING |
1617 | "%s: MAC Frame Srce. Addr: %s\n", | 1612 | "%s: MAC Frame Srce. Addr: %pM\n", |
1618 | dev->name, DEV->ADDR6(mac_hdr->saddr)); | 1613 | dev->name, mac_hdr->saddr); |
1619 | #endif | 1614 | #endif |
1620 | netif_rx(mac_frame); | 1615 | netif_rx(mac_frame); |
1621 | 1616 | ||
@@ -1850,8 +1845,6 @@ static int sprintf_info(char *buffer, struct net_device *dev) | |||
1850 | struct streamer_parameters_table spt; | 1845 | struct streamer_parameters_table spt; |
1851 | int size = 0; | 1846 | int size = 0; |
1852 | int i; | 1847 | int i; |
1853 | DECLARE_MAC_BUF(mac); | ||
1854 | DECLARE_MAC_BUF(mac2); | ||
1855 | 1848 | ||
1856 | writew(streamer_priv->streamer_addr_table_addr, streamer_mmio + LAPA); | 1849 | writew(streamer_priv->streamer_addr_table_addr, streamer_mmio + LAPA); |
1857 | for (i = 0; i < 14; i += 2) { | 1850 | for (i = 0; i < 14; i += 2) { |
@@ -1873,9 +1866,8 @@ static int sprintf_info(char *buffer, struct net_device *dev) | |||
1873 | size = sprintf(buffer, "\n%6s: Adapter Address : Node Address : Functional Addr\n", dev->name); | 1866 | size = sprintf(buffer, "\n%6s: Adapter Address : Node Address : Functional Addr\n", dev->name); |
1874 | 1867 | ||
1875 | size += sprintf(buffer + size, | 1868 | size += sprintf(buffer + size, |
1876 | "%6s: %s : %s : %02x:%02x:%02x:%02x\n", | 1869 | "%6s: %pM : %pM : %02x:%02x:%02x:%02x\n", |
1877 | dev->name, print_mac(mac, dev->dev_addr), | 1870 | dev->name, dev->dev_addr, sat.node_addr, |
1878 | print_mac(mac2, sat.node_addr), | ||
1879 | sat.func_addr[0], sat.func_addr[1], | 1871 | sat.func_addr[0], sat.func_addr[1], |
1880 | sat.func_addr[2], sat.func_addr[3]); | 1872 | sat.func_addr[2], sat.func_addr[3]); |
1881 | 1873 | ||
@@ -1884,19 +1876,18 @@ static int sprintf_info(char *buffer, struct net_device *dev) | |||
1884 | size += sprintf(buffer + size, "%6s: Physical Addr : Up Node Address : Poll Address : AccPri : Auth Src : Att Code :\n", dev->name); | 1876 | size += sprintf(buffer + size, "%6s: Physical Addr : Up Node Address : Poll Address : AccPri : Auth Src : Att Code :\n", dev->name); |
1885 | 1877 | ||
1886 | size += sprintf(buffer + size, | 1878 | size += sprintf(buffer + size, |
1887 | "%6s: %02x:%02x:%02x:%02x : %s : %s : %04x : %04x : %04x :\n", | 1879 | "%6s: %02x:%02x:%02x:%02x : %pM : %pM : %04x : %04x : %04x :\n", |
1888 | dev->name, spt.phys_addr[0], spt.phys_addr[1], | 1880 | dev->name, spt.phys_addr[0], spt.phys_addr[1], |
1889 | spt.phys_addr[2], spt.phys_addr[3], | 1881 | spt.phys_addr[2], spt.phys_addr[3], |
1890 | print_mac(mac, spt.up_node_addr), | 1882 | spt.up_node_addr, spt.poll_addr, |
1891 | print_mac(mac2, spt.poll_addr), | ||
1892 | ntohs(spt.acc_priority), ntohs(spt.auth_source_class), | 1883 | ntohs(spt.acc_priority), ntohs(spt.auth_source_class), |
1893 | ntohs(spt.att_code)); | 1884 | ntohs(spt.att_code)); |
1894 | 1885 | ||
1895 | size += sprintf(buffer + size, "%6s: Source Address : Bcn T : Maj. V : Lan St : Lcl Rg : Mon Err : Frame Correl : \n", dev->name); | 1886 | size += sprintf(buffer + size, "%6s: Source Address : Bcn T : Maj. V : Lan St : Lcl Rg : Mon Err : Frame Correl : \n", dev->name); |
1896 | 1887 | ||
1897 | size += sprintf(buffer + size, | 1888 | size += sprintf(buffer + size, |
1898 | "%6s: %s : %04x : %04x : %04x : %04x : %04x : %04x : \n", | 1889 | "%6s: %pM : %04x : %04x : %04x : %04x : %04x : %04x : \n", |
1899 | dev->name, print_mac(mac, spt.source_addr), | 1890 | dev->name, spt.source_addr, |
1900 | ntohs(spt.beacon_type), ntohs(spt.major_vector), | 1891 | ntohs(spt.beacon_type), ntohs(spt.major_vector), |
1901 | ntohs(spt.lan_status), ntohs(spt.local_ring), | 1892 | ntohs(spt.lan_status), ntohs(spt.local_ring), |
1902 | ntohs(spt.mon_error), ntohs(spt.frame_correl)); | 1893 | ntohs(spt.mon_error), ntohs(spt.frame_correl)); |
@@ -1905,10 +1896,10 @@ static int sprintf_info(char *buffer, struct net_device *dev) | |||
1905 | dev->name); | 1896 | dev->name); |
1906 | 1897 | ||
1907 | size += sprintf(buffer + size, | 1898 | size += sprintf(buffer + size, |
1908 | "%6s: : %02x : %02x : %s : %02x:%02x:%02x:%02x : \n", | 1899 | "%6s: : %02x : %02x : %pM : %02x:%02x:%02x:%02x : \n", |
1909 | dev->name, ntohs(spt.beacon_transmit), | 1900 | dev->name, ntohs(spt.beacon_transmit), |
1910 | ntohs(spt.beacon_receive), | 1901 | ntohs(spt.beacon_receive), |
1911 | print_mac(mac, spt.beacon_naun), | 1902 | spt.beacon_naun, |
1912 | spt.beacon_phys[0], spt.beacon_phys[1], | 1903 | spt.beacon_phys[0], spt.beacon_phys[1], |
1913 | spt.beacon_phys[2], spt.beacon_phys[3]); | 1904 | spt.beacon_phys[2], spt.beacon_phys[3]); |
1914 | return size; | 1905 | return size; |
diff --git a/drivers/net/tokenring/madgemc.c b/drivers/net/tokenring/madgemc.c index c9c5a2b1ed9e..0ba6f0bc7c00 100644 --- a/drivers/net/tokenring/madgemc.c +++ b/drivers/net/tokenring/madgemc.c | |||
@@ -152,7 +152,6 @@ static int __devinit madgemc_probe(struct device *device) | |||
152 | struct card_info *card; | 152 | struct card_info *card; |
153 | struct mca_device *mdev = to_mca_device(device); | 153 | struct mca_device *mdev = to_mca_device(device); |
154 | int ret = 0; | 154 | int ret = 0; |
155 | DECLARE_MAC_BUF(mac); | ||
156 | 155 | ||
157 | if (versionprinted++ == 0) | 156 | if (versionprinted++ == 0) |
158 | printk("%s", version); | 157 | printk("%s", version); |
@@ -323,8 +322,8 @@ static int __devinit madgemc_probe(struct device *device) | |||
323 | mca_device_set_name(mdev, (card->cardtype == 0x08)?MADGEMC16_CARDNAME:MADGEMC32_CARDNAME); | 322 | mca_device_set_name(mdev, (card->cardtype == 0x08)?MADGEMC16_CARDNAME:MADGEMC32_CARDNAME); |
324 | mca_set_adapter_procfn(mdev->slot, madgemc_mcaproc, dev); | 323 | mca_set_adapter_procfn(mdev->slot, madgemc_mcaproc, dev); |
325 | 324 | ||
326 | printk("%s: Ring Station Address: %s\n", | 325 | printk("%s: Ring Station Address: %pM\n", |
327 | dev->name, print_mac(mac, dev->dev_addr)); | 326 | dev->name, dev->dev_addr); |
328 | 327 | ||
329 | if (tmsdev_init(dev, device)) { | 328 | if (tmsdev_init(dev, device)) { |
330 | printk("%s: unable to get memory for dev->priv.\n", | 329 | printk("%s: unable to get memory for dev->priv.\n", |
@@ -690,7 +689,6 @@ static int madgemc_mcaproc(char *buf, int slot, void *d) | |||
690 | struct net_local *tp = netdev_priv(dev); | 689 | struct net_local *tp = netdev_priv(dev); |
691 | struct card_info *curcard = tp->tmspriv; | 690 | struct card_info *curcard = tp->tmspriv; |
692 | int len = 0; | 691 | int len = 0; |
693 | DECLARE_MAC_BUF(mac); | ||
694 | 692 | ||
695 | len += sprintf(buf+len, "-------\n"); | 693 | len += sprintf(buf+len, "-------\n"); |
696 | if (curcard) { | 694 | if (curcard) { |
@@ -714,8 +712,8 @@ static int madgemc_mcaproc(char *buf, int slot, void *d) | |||
714 | } | 712 | } |
715 | len += sprintf(buf+len, " (%s)\n", (curcard->fairness)?"Unfair":"Fair"); | 713 | len += sprintf(buf+len, " (%s)\n", (curcard->fairness)?"Unfair":"Fair"); |
716 | 714 | ||
717 | len += sprintf(buf+len, "Ring Station Address: %s\n", | 715 | len += sprintf(buf+len, "Ring Station Address: %pM\n", |
718 | print_mac(mac, dev->dev_addr)); | 716 | dev->dev_addr); |
719 | } else | 717 | } else |
720 | len += sprintf(buf+len, "Card not configured\n"); | 718 | len += sprintf(buf+len, "Card not configured\n"); |
721 | 719 | ||
diff --git a/drivers/net/tokenring/olympic.c b/drivers/net/tokenring/olympic.c index 0ab51a0f35fc..f78bc5d40708 100644 --- a/drivers/net/tokenring/olympic.c +++ b/drivers/net/tokenring/olympic.c | |||
@@ -421,10 +421,7 @@ static int olympic_init(struct net_device *dev) | |||
421 | memcpy_fromio(&dev->dev_addr[0], adapter_addr,6); | 421 | memcpy_fromio(&dev->dev_addr[0], adapter_addr,6); |
422 | 422 | ||
423 | #if OLYMPIC_DEBUG | 423 | #if OLYMPIC_DEBUG |
424 | { | 424 | printk("adapter address: %pM\n", dev->dev_addr); |
425 | DECLARE_MAC_BUF(mac); | ||
426 | printk("adapter address: %s\n", print_mac(mac, dev->dev_addr)); | ||
427 | } | ||
428 | #endif | 425 | #endif |
429 | 426 | ||
430 | olympic_priv->olympic_addr_table_addr = swab16(readw(init_srb + 12)); | 427 | olympic_priv->olympic_addr_table_addr = swab16(readw(init_srb + 12)); |
@@ -441,7 +438,6 @@ static int olympic_open(struct net_device *dev) | |||
441 | unsigned long flags, t; | 438 | unsigned long flags, t; |
442 | int i, open_finished = 1 ; | 439 | int i, open_finished = 1 ; |
443 | u8 resp, err; | 440 | u8 resp, err; |
444 | DECLARE_MAC_BUF(mac); | ||
445 | 441 | ||
446 | DECLARE_WAITQUEUE(wait,current) ; | 442 | DECLARE_WAITQUEUE(wait,current) ; |
447 | 443 | ||
@@ -569,8 +565,8 @@ static int olympic_open(struct net_device *dev) | |||
569 | goto out; | 565 | goto out; |
570 | 566 | ||
571 | case 0x32: | 567 | case 0x32: |
572 | printk(KERN_WARNING "%s: Invalid LAA: %s\n", | 568 | printk(KERN_WARNING "%s: Invalid LAA: %pM\n", |
573 | dev->name, print_mac(mac, olympic_priv->olympic_laa)); | 569 | dev->name, olympic_priv->olympic_laa); |
574 | goto out; | 570 | goto out; |
575 | 571 | ||
576 | default: | 572 | default: |
@@ -704,13 +700,12 @@ static int olympic_open(struct net_device *dev) | |||
704 | u8 __iomem *opt; | 700 | u8 __iomem *opt; |
705 | int i; | 701 | int i; |
706 | u8 addr[6]; | 702 | u8 addr[6]; |
707 | DECLARE_MAC_BUF(mac); | ||
708 | oat = (olympic_priv->olympic_lap + olympic_priv->olympic_addr_table_addr); | 703 | oat = (olympic_priv->olympic_lap + olympic_priv->olympic_addr_table_addr); |
709 | opt = (olympic_priv->olympic_lap + olympic_priv->olympic_parms_addr); | 704 | opt = (olympic_priv->olympic_lap + olympic_priv->olympic_parms_addr); |
710 | 705 | ||
711 | for (i = 0; i < 6; i++) | 706 | for (i = 0; i < 6; i++) |
712 | addr[i] = readb(oat+offsetof(struct olympic_adapter_addr_table,node_addr)+i); | 707 | addr[i] = readb(oat+offsetof(struct olympic_adapter_addr_table,node_addr)+i); |
713 | printk("%s: Node Address: %s\n",dev->name, print_mac(mac, addr)); | 708 | printk("%s: Node Address: %pM\n", dev->name, addr); |
714 | printk("%s: Functional Address: %02x:%02x:%02x:%02x\n",dev->name, | 709 | printk("%s: Functional Address: %02x:%02x:%02x:%02x\n",dev->name, |
715 | readb(oat+offsetof(struct olympic_adapter_addr_table,func_addr)), | 710 | readb(oat+offsetof(struct olympic_adapter_addr_table,func_addr)), |
716 | readb(oat+offsetof(struct olympic_adapter_addr_table,func_addr)+1), | 711 | readb(oat+offsetof(struct olympic_adapter_addr_table,func_addr)+1), |
@@ -719,7 +714,7 @@ static int olympic_open(struct net_device *dev) | |||
719 | 714 | ||
720 | for (i = 0; i < 6; i++) | 715 | for (i = 0; i < 6; i++) |
721 | addr[i] = readb(opt+offsetof(struct olympic_parameters_table, up_node_addr)+i); | 716 | addr[i] = readb(opt+offsetof(struct olympic_parameters_table, up_node_addr)+i); |
722 | printk("%s: NAUN Address: %s\n",dev->name, print_mac(mac, addr)); | 717 | printk("%s: NAUN Address: %pM\n", dev->name, addr); |
723 | } | 718 | } |
724 | 719 | ||
725 | netif_start_queue(dev); | 720 | netif_start_queue(dev); |
@@ -1440,16 +1435,10 @@ static void olympic_arb_cmd(struct net_device *dev) | |||
1440 | struct trh_hdr *mac_hdr; | 1435 | struct trh_hdr *mac_hdr; |
1441 | printk(KERN_WARNING "%s: Received MAC Frame, details: \n",dev->name); | 1436 | printk(KERN_WARNING "%s: Received MAC Frame, details: \n",dev->name); |
1442 | mac_hdr = tr_hdr(mac_frame); | 1437 | mac_hdr = tr_hdr(mac_frame); |
1443 | printk(KERN_WARNING "%s: MAC Frame Dest. Addr: " | 1438 | printk(KERN_WARNING "%s: MAC Frame Dest. Addr: %pM\n", |
1444 | MAC_FMT " \n", dev->name, | 1439 | dev->name, mac_hdr->daddr); |
1445 | mac_hdr->daddr[0], mac_hdr->daddr[1], | 1440 | printk(KERN_WARNING "%s: MAC Frame Srce. Addr: %pM\n", |
1446 | mac_hdr->daddr[2], mac_hdr->daddr[3], | 1441 | dev->name, mac_hdr->saddr); |
1447 | mac_hdr->daddr[4], mac_hdr->daddr[5]); | ||
1448 | printk(KERN_WARNING "%s: MAC Frame Srce. Addr: " | ||
1449 | MAC_FMT " \n", dev->name, | ||
1450 | mac_hdr->saddr[0], mac_hdr->saddr[1], | ||
1451 | mac_hdr->saddr[2], mac_hdr->saddr[3], | ||
1452 | mac_hdr->saddr[4], mac_hdr->saddr[5]); | ||
1453 | } | 1442 | } |
1454 | netif_rx(mac_frame); | 1443 | netif_rx(mac_frame); |
1455 | dev->last_rx = jiffies; | 1444 | dev->last_rx = jiffies; |
@@ -1647,8 +1636,6 @@ static int olympic_proc_info(char *buffer, char **start, off_t offset, int lengt | |||
1647 | u8 addr[6]; | 1636 | u8 addr[6]; |
1648 | u8 addr2[6]; | 1637 | u8 addr2[6]; |
1649 | int i; | 1638 | int i; |
1650 | DECLARE_MAC_BUF(mac); | ||
1651 | DECLARE_MAC_BUF(mac2); | ||
1652 | 1639 | ||
1653 | size = sprintf(buffer, | 1640 | size = sprintf(buffer, |
1654 | "IBM Pit/Pit-Phy/Olympic Chipset Token Ring Adapter %s\n",dev->name); | 1641 | "IBM Pit/Pit-Phy/Olympic Chipset Token Ring Adapter %s\n",dev->name); |
@@ -1658,10 +1645,9 @@ static int olympic_proc_info(char *buffer, char **start, off_t offset, int lengt | |||
1658 | for (i = 0 ; i < 6 ; i++) | 1645 | for (i = 0 ; i < 6 ; i++) |
1659 | addr[i] = readb(oat+offsetof(struct olympic_adapter_addr_table,node_addr) + i); | 1646 | addr[i] = readb(oat+offsetof(struct olympic_adapter_addr_table,node_addr) + i); |
1660 | 1647 | ||
1661 | size += sprintf(buffer+size, "%6s: %s : %s : %02x:%02x:%02x:%02x\n", | 1648 | size += sprintf(buffer+size, "%6s: %pM : %pM : %02x:%02x:%02x:%02x\n", |
1662 | dev->name, | 1649 | dev->name, |
1663 | print_mac(mac, dev->dev_addr), | 1650 | dev->dev_addr, addr, |
1664 | print_mac(mac2, addr), | ||
1665 | readb(oat+offsetof(struct olympic_adapter_addr_table,func_addr)), | 1651 | readb(oat+offsetof(struct olympic_adapter_addr_table,func_addr)), |
1666 | readb(oat+offsetof(struct olympic_adapter_addr_table,func_addr)+1), | 1652 | readb(oat+offsetof(struct olympic_adapter_addr_table,func_addr)+1), |
1667 | readb(oat+offsetof(struct olympic_adapter_addr_table,func_addr)+2), | 1653 | readb(oat+offsetof(struct olympic_adapter_addr_table,func_addr)+2), |
@@ -1677,14 +1663,13 @@ static int olympic_proc_info(char *buffer, char **start, off_t offset, int lengt | |||
1677 | for (i = 0 ; i < 6 ; i++) | 1663 | for (i = 0 ; i < 6 ; i++) |
1678 | addr2[i] = readb(opt+offsetof(struct olympic_parameters_table, poll_addr) + i); | 1664 | addr2[i] = readb(opt+offsetof(struct olympic_parameters_table, poll_addr) + i); |
1679 | 1665 | ||
1680 | size += sprintf(buffer+size, "%6s: %02x:%02x:%02x:%02x : %s : %s : %04x : %04x : %04x :\n", | 1666 | size += sprintf(buffer+size, "%6s: %02x:%02x:%02x:%02x : %pM : %pM : %04x : %04x : %04x :\n", |
1681 | dev->name, | 1667 | dev->name, |
1682 | readb(opt+offsetof(struct olympic_parameters_table, phys_addr)), | 1668 | readb(opt+offsetof(struct olympic_parameters_table, phys_addr)), |
1683 | readb(opt+offsetof(struct olympic_parameters_table, phys_addr)+1), | 1669 | readb(opt+offsetof(struct olympic_parameters_table, phys_addr)+1), |
1684 | readb(opt+offsetof(struct olympic_parameters_table, phys_addr)+2), | 1670 | readb(opt+offsetof(struct olympic_parameters_table, phys_addr)+2), |
1685 | readb(opt+offsetof(struct olympic_parameters_table, phys_addr)+3), | 1671 | readb(opt+offsetof(struct olympic_parameters_table, phys_addr)+3), |
1686 | print_mac(mac, addr), | 1672 | addr, addr2, |
1687 | print_mac(mac2, addr2), | ||
1688 | swab16(readw(opt+offsetof(struct olympic_parameters_table, acc_priority))), | 1673 | swab16(readw(opt+offsetof(struct olympic_parameters_table, acc_priority))), |
1689 | swab16(readw(opt+offsetof(struct olympic_parameters_table, auth_source_class))), | 1674 | swab16(readw(opt+offsetof(struct olympic_parameters_table, auth_source_class))), |
1690 | swab16(readw(opt+offsetof(struct olympic_parameters_table, att_code)))); | 1675 | swab16(readw(opt+offsetof(struct olympic_parameters_table, att_code)))); |
@@ -1694,9 +1679,8 @@ static int olympic_proc_info(char *buffer, char **start, off_t offset, int lengt | |||
1694 | 1679 | ||
1695 | for (i = 0 ; i < 6 ; i++) | 1680 | for (i = 0 ; i < 6 ; i++) |
1696 | addr[i] = readb(opt+offsetof(struct olympic_parameters_table, source_addr) + i); | 1681 | addr[i] = readb(opt+offsetof(struct olympic_parameters_table, source_addr) + i); |
1697 | size += sprintf(buffer+size, "%6s: %s : %04x : %04x : %04x : %04x : %04x : %04x : \n", | 1682 | size += sprintf(buffer+size, "%6s: %pM : %04x : %04x : %04x : %04x : %04x : %04x : \n", |
1698 | dev->name, | 1683 | dev->name, addr, |
1699 | print_mac(mac, addr), | ||
1700 | swab16(readw(opt+offsetof(struct olympic_parameters_table, beacon_type))), | 1684 | swab16(readw(opt+offsetof(struct olympic_parameters_table, beacon_type))), |
1701 | swab16(readw(opt+offsetof(struct olympic_parameters_table, major_vector))), | 1685 | swab16(readw(opt+offsetof(struct olympic_parameters_table, major_vector))), |
1702 | swab16(readw(opt+offsetof(struct olympic_parameters_table, lan_status))), | 1686 | swab16(readw(opt+offsetof(struct olympic_parameters_table, lan_status))), |
@@ -1709,11 +1693,11 @@ static int olympic_proc_info(char *buffer, char **start, off_t offset, int lengt | |||
1709 | 1693 | ||
1710 | for (i = 0 ; i < 6 ; i++) | 1694 | for (i = 0 ; i < 6 ; i++) |
1711 | addr[i] = readb(opt+offsetof(struct olympic_parameters_table, beacon_naun) + i); | 1695 | addr[i] = readb(opt+offsetof(struct olympic_parameters_table, beacon_naun) + i); |
1712 | size += sprintf(buffer+size, "%6s: : %02x : %02x : %s : %02x:%02x:%02x:%02x : \n", | 1696 | size += sprintf(buffer+size, "%6s: : %02x : %02x : %pM : %02x:%02x:%02x:%02x : \n", |
1713 | dev->name, | 1697 | dev->name, |
1714 | swab16(readw(opt+offsetof(struct olympic_parameters_table, beacon_transmit))), | 1698 | swab16(readw(opt+offsetof(struct olympic_parameters_table, beacon_transmit))), |
1715 | swab16(readw(opt+offsetof(struct olympic_parameters_table, beacon_receive))), | 1699 | swab16(readw(opt+offsetof(struct olympic_parameters_table, beacon_receive))), |
1716 | print_mac(mac, addr), | 1700 | addr, |
1717 | readb(opt+offsetof(struct olympic_parameters_table, beacon_phys)), | 1701 | readb(opt+offsetof(struct olympic_parameters_table, beacon_phys)), |
1718 | readb(opt+offsetof(struct olympic_parameters_table, beacon_phys)+1), | 1702 | readb(opt+offsetof(struct olympic_parameters_table, beacon_phys)+1), |
1719 | readb(opt+offsetof(struct olympic_parameters_table, beacon_phys)+2), | 1703 | readb(opt+offsetof(struct olympic_parameters_table, beacon_phys)+2), |
diff --git a/drivers/net/tokenring/proteon.c b/drivers/net/tokenring/proteon.c index 00ea94513460..cd2d62f76079 100644 --- a/drivers/net/tokenring/proteon.c +++ b/drivers/net/tokenring/proteon.c | |||
@@ -122,7 +122,6 @@ static int __init setup_card(struct net_device *dev, struct device *pdev) | |||
122 | static int versionprinted; | 122 | static int versionprinted; |
123 | const unsigned *port; | 123 | const unsigned *port; |
124 | int j,err = 0; | 124 | int j,err = 0; |
125 | DECLARE_MAC_BUF(mac); | ||
126 | 125 | ||
127 | if (!dev) | 126 | if (!dev) |
128 | return -ENOMEM; | 127 | return -ENOMEM; |
@@ -153,8 +152,8 @@ static int __init setup_card(struct net_device *dev, struct device *pdev) | |||
153 | 152 | ||
154 | proteon_read_eeprom(dev); | 153 | proteon_read_eeprom(dev); |
155 | 154 | ||
156 | printk(KERN_DEBUG "proteon.c: Ring Station Address: %s\n", | 155 | printk(KERN_DEBUG "proteon.c: Ring Station Address: %pM\n", |
157 | print_mac(mac, dev->dev_addr)); | 156 | dev->dev_addr); |
158 | 157 | ||
159 | tp = netdev_priv(dev); | 158 | tp = netdev_priv(dev); |
160 | tp->setnselout = proteon_setnselout_pins; | 159 | tp->setnselout = proteon_setnselout_pins; |
diff --git a/drivers/net/tokenring/skisa.c b/drivers/net/tokenring/skisa.c index 41b6999a0f33..b578744311b0 100644 --- a/drivers/net/tokenring/skisa.c +++ b/drivers/net/tokenring/skisa.c | |||
@@ -139,7 +139,6 @@ static int __init setup_card(struct net_device *dev, struct device *pdev) | |||
139 | static int versionprinted; | 139 | static int versionprinted; |
140 | const unsigned *port; | 140 | const unsigned *port; |
141 | int j, err = 0; | 141 | int j, err = 0; |
142 | DECLARE_MAC_BUF(mac); | ||
143 | 142 | ||
144 | if (!dev) | 143 | if (!dev) |
145 | return -ENOMEM; | 144 | return -ENOMEM; |
@@ -170,8 +169,8 @@ static int __init setup_card(struct net_device *dev, struct device *pdev) | |||
170 | 169 | ||
171 | sk_isa_read_eeprom(dev); | 170 | sk_isa_read_eeprom(dev); |
172 | 171 | ||
173 | printk(KERN_DEBUG "skisa.c: Ring Station Address: %s\n", | 172 | printk(KERN_DEBUG "skisa.c: Ring Station Address: %pM\n", |
174 | print_mac(mac, dev->dev_addr)); | 173 | dev->dev_addr); |
175 | 174 | ||
176 | tp = netdev_priv(dev); | 175 | tp = netdev_priv(dev); |
177 | tp->setnselout = sk_isa_setnselout_pins; | 176 | tp->setnselout = sk_isa_setnselout_pins; |
diff --git a/drivers/net/tokenring/tmspci.c b/drivers/net/tokenring/tmspci.c index 5f0ee880cfff..5f601773c260 100644 --- a/drivers/net/tokenring/tmspci.c +++ b/drivers/net/tokenring/tmspci.c | |||
@@ -100,7 +100,6 @@ static int __devinit tms_pci_attach(struct pci_dev *pdev, const struct pci_devic | |||
100 | unsigned int pci_irq_line; | 100 | unsigned int pci_irq_line; |
101 | unsigned long pci_ioaddr; | 101 | unsigned long pci_ioaddr; |
102 | struct card_info *cardinfo = &card_info_table[ent->driver_data]; | 102 | struct card_info *cardinfo = &card_info_table[ent->driver_data]; |
103 | DECLARE_MAC_BUF(mac); | ||
104 | 103 | ||
105 | if (versionprinted++ == 0) | 104 | if (versionprinted++ == 0) |
106 | printk("%s", version); | 105 | printk("%s", version); |
@@ -137,8 +136,8 @@ static int __devinit tms_pci_attach(struct pci_dev *pdev, const struct pci_devic | |||
137 | 136 | ||
138 | tms_pci_read_eeprom(dev); | 137 | tms_pci_read_eeprom(dev); |
139 | 138 | ||
140 | printk("%s: Ring Station Address: %s\n", | 139 | printk("%s: Ring Station Address: %pM\n", |
141 | dev->name, print_mac(mac, dev->dev_addr)); | 140 | dev->name, dev->dev_addr); |
142 | 141 | ||
143 | ret = tmsdev_init(dev, &pdev->dev); | 142 | ret = tmsdev_init(dev, &pdev->dev); |
144 | if (ret) { | 143 | if (ret) { |