drivers/net/ax88796.c: Use print_mac
Subsystems (3)
PATCH 1/11 drivers/net/ax88796.c: Use print_mac
--- drivers/net/ax88796.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-)
drivers/net/ax88796.c +4 -8
@@ -750,14 +750,10 @@ static int ax_init_dev(struct net_device *dev, int first_init)ax_NS8390_init (dev,0 );if (first_init) { -printk ("AX88796: %dbit, irq %d, %lx, MAC: " , - ei_status.word16 ?16 :8 , dev->irq, dev->base_addr); - -for (i =0 ; i <ETHER_ADDR_LEN ; i++) -printk ("%2.2x%c" , dev->dev_addr[i], - (i < (ETHER_ADDR_LEN -1 ) ?':' :' ' )); - -printk ("\n" ); +DECLARE_MAC_BUF (mac); +printk ("AX88796: %dbit, irq %d, %lx, MAC: %s\n" , + ei_status.word16 ?16 :8 , dev->irq, dev->base_addr, +print_mac (mac, dev->dev_addr)); } ret =register_netdev (dev);
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 2/11 drivers/net/hplance.c: Use print_mac
--- drivers/net/hplance.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-)
drivers/net/hplance.c +1 -6
@@ -77,7 +77,7 @@ static int __devinit hplance_init_one(struct dio_dev *d, {struct net_device *dev;int err = -ENOMEM ; -int i; +DECLARE_MAC_BUF (mac); dev =alloc_etherdev (sizeof (struct hplance_private ));if (!dev)
@@ -95,13 +95,9 @@ 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]); - }
PATCH 3/11 drivers/net/mac8390.c: Use print_mac
--- drivers/net/mac8390.c | 18 ++++++------------ 1 files changed, 6 insertions(+), 12 deletions(-)
drivers/net/mac8390.c +6 -12
@@ -483,6 +483,7 @@ void cleanup_module(void)static int __init mac8390_initdev (struct net_device * dev,struct nubus_dev * ndev,enum mac8390_type type) { +DECLARE_MAC_BUF (mac);static u32 fwrd4_offsets[16 ]={0 ,4 ,8 ,12 ,16 ,20 ,24 ,28 ,
@@ -612,18 +613,11 @@ static int __init mac8390_initdev(struct net_device * dev, struct nubus_dev * nd/* Good, done, now spit out some messages */ printk (KERN_INFO "%s: %s in slot %X (type %s)\n" , dev->name, ndev->board->name, ndev->board->slot, cardname[type]); -printk (KERN_INFO "MAC " ); - { -int i; -for (i =0 ; i <6 ; i++) { -printk ("%2.2x" , dev->dev_addr[i]); -if (i <5 ) -printk (":" ); - } - } -printk (" IRQ %d, %d KB shared memory at %#lx, %d-bit access.\n" , - dev->irq, (int )((dev->mem_end - dev->mem_start)/0x1000 ) *4 , - dev->mem_start, access_bitmode?32 :16 ); +printk (KERN_INFO "MAC %s IRQ %d, %d KB shared memory at %#lx, " +"%d-bit access.\n" , +print_mac (mac, dev->dev_addr), dev->irq, + (int )((dev->mem_end - dev->mem_start)/0x1000 ) *4 , + dev->mem_start, access_bitmode?32 :16 );return 0 ; }
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 3/11 drivers/net/mac8390.c: Use print_mac
In reply to Joe Perches--- drivers/net/mac8390.c | 18 ++++++------------ 1 files changed, 6 insertions(+), 12 deletions(-)
drivers/net/mac8390.c +6 -12
@@ -483,6 +483,7 @@ void cleanup_module(void)static int __init mac8390_initdev (struct net_device * dev,struct nubus_dev * ndev,enum mac8390_type type) { +DECLARE_MAC_BUF (mac);static u32 fwrd4_offsets[16 ]={0 ,4 ,8 ,12 ,16 ,20 ,24 ,28 ,
@@ -612,18 +613,11 @@ static int __init mac8390_initdev(struct net_device * dev, struct nubus_dev * nd/* Good, done, now spit out some messages */ printk (KERN_INFO "%s: %s in slot %X (type %s)\n" , dev->name, ndev->board->name, ndev->board->slot, cardname[type]); -printk (KERN_INFO "MAC " ); - { -int i; -for (i =0 ; i <6 ; i++) { -printk ("%2.2x" , dev->dev_addr[i]); -if (i <5 ) -printk (":" ); - } - } -printk (" IRQ %d, %d KB shared memory at %#lx, %d-bit access.\n" , - dev->irq, (int )((dev->mem_end - dev->mem_start)/0x1000 ) *4 , - dev->mem_start, access_bitmode?32 :16 ); +printk (KERN_INFO "MAC %s IRQ %d, %d KB shared memory at %#lx, " +"%d-bit access.\n" , +print_mac (mac, dev->dev_addr), dev->irq, + (int )((dev->mem_end - dev->mem_start)/0x1000 ) *4 , + dev->mem_start, access_bitmode?32 :16 );return 0 ; }
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 4/11 drivers/net/mac89x0.c: Use print_mac
--- drivers/net/mac89x0.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/net/mac89x0.c +4 -3
@@ -584,11 +584,12 @@ static void set_multicast_list(struct net_device *dev)static int set_mac_address (struct net_device *dev,void *addr) { +DECLARE_MAC_BUF (mac);int i; -printk ("%s: Setting MAC address to " , dev->name);for (i =0 ; i <6 ; i++) -printk (" %2.2x" , dev->dev_addr[i] = ((unsigned char *)addr)[i]); -printk (".\n" ); + dev->dev_addr[i] = ((unsigned char *)addr)[i]; +printk (KERN_INFO "%s: Setting MAC address to %s\n" , + dev->name,print_mac (mac, dev->dev_addr));/* set the Ethernet address */ for (i=0 ; i <ETH_ALEN /2 ; i++)writereg (dev,PP_IA +i*2 , dev->dev_addr[i*2 ] | (dev->dev_addr[i*2 +1 ] <<8 ));
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 4/11 drivers/net/mac89x0.c: Use print_mac
In reply to Joe Perches--- drivers/net/mac89x0.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/net/mac89x0.c +4 -3
@@ -584,11 +584,12 @@ static void set_multicast_list(struct net_device *dev)static int set_mac_address (struct net_device *dev,void *addr) { +DECLARE_MAC_BUF (mac);int i; -printk ("%s: Setting MAC address to " , dev->name);for (i =0 ; i <6 ; i++) -printk (" %2.2x" , dev->dev_addr[i] = ((unsigned char *)addr)[i]); -printk (".\n" ); + dev->dev_addr[i] = ((unsigned char *)addr)[i]; +printk (KERN_INFO "%s: Setting MAC address to %s\n" , + dev->name,print_mac (mac, dev->dev_addr));/* set the Ethernet address */ for (i=0 ; i <ETH_ALEN /2 ; i++)writereg (dev,PP_IA +i*2 , dev->dev_addr[i*2 ] | (dev->dev_addr[i*2 +1 ] <<8 ));
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 5/11 drivers/net/niu.c: Use print_mac
--- drivers/net/niu.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)
drivers/net/niu.c +3 -5
@@ -7392,12 +7392,10 @@ static void __devinit niu_assign_netdev_ops(struct net_device *dev)static void __devinit niu_device_announce (struct niu *np) {struct net_device *dev = np->dev; -int i; +DECLARE_MAC_BUF (mac); -pr_info ("%s: NIU Ethernet " , dev->name); -for (i =0 ; i <6 ; i++) -printk ("%2.2x%c" , dev->dev_addr[i], - i ==5 ?'\n' :':' ); +pr_info ("%s: NIU Ethernet %s\n" , + dev->name,print_mac (mac, dev->dev_addr)); pr_info("%s: Port type[%s] mode[%s:%s] XCVR[%s] phy[%s]\n", dev->name,
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 5/11 drivers/net/niu.c: Use print_mac
In reply to Joe Perches--- drivers/net/niu.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)
drivers/net/niu.c +3 -5
@@ -7392,12 +7392,10 @@ static void __devinit niu_assign_netdev_ops(struct net_device *dev)static void __devinit niu_device_announce (struct niu *np) {struct net_device *dev = np->dev; -int i; +DECLARE_MAC_BUF (mac); -pr_info ("%s: NIU Ethernet " , dev->name); -for (i =0 ; i <6 ; i++) -printk ("%2.2x%c" , dev->dev_addr[i], - i ==5 ?'\n' :':' ); +pr_info ("%s: NIU Ethernet %s\n" , + dev->name,print_mac (mac, dev->dev_addr)); pr_info("%s: Port type[%s] mode[%s:%s] XCVR[%s] phy[%s]\n", dev->name,
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 6/11 drivers/net/pcnet32.c: Use print_mac
--- drivers/net/pcnet32.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/pcnet32.c +2 -2
@@ -1769,8 +1769,8 @@ pcnet32_probe1(unsigned long ioaddr, int shared, struct pci_dev *pdev)memset (dev->dev_addr,0 ,sizeof (dev->dev_addr));if (pcnet32_debug &NETIF_MSG_PROBE ) { -for (i =0 ; i <6 ; i++) -printk (" %2.2x" , dev->dev_addr[i]); +DECLARE_MAC_BUF (mac); +printk (" %s" ,print_mac (mac, dev->dev_addr));/* Version 0x2623 and 0x2624 */ if (((chip_version +1 ) &0xfffe ) ==0x2624 ) {
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 6/11 drivers/net/pcnet32.c: Use print_mac
In reply to Joe Perches--- drivers/net/pcnet32.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/pcnet32.c +2 -2
@@ -1769,8 +1769,8 @@ pcnet32_probe1(unsigned long ioaddr, int shared, struct pci_dev *pdev)memset (dev->dev_addr,0 ,sizeof (dev->dev_addr));if (pcnet32_debug &NETIF_MSG_PROBE ) { -for (i =0 ; i <6 ; i++) -printk (" %2.2x" , dev->dev_addr[i]); +DECLARE_MAC_BUF (mac); +printk (" %s" ,print_mac (mac, dev->dev_addr));/* Version 0x2623 and 0x2624 */ if (((chip_version +1 ) &0xfffe ) ==0x2624 ) {
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 7/11 drivers/net/smc911x.c: Use print_mac
--- drivers/net/smc911x.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
drivers/net/smc911x.c +3 -4
@@ -2086,10 +2086,9 @@ static int __init smc911x_probe(struct net_device *dev, unsigned long ioaddr) "set using ifconfig\n", dev->name); }else {/* Print the Ethernet address */ -printk ("%s: Ethernet addr: " , dev->name); -for (i =0 ; i <5 ; i++) -printk ("%2.2x:" , dev->dev_addr[i]); -printk ("%2.2x\n" , dev->dev_addr[5 ]); +DECLARE_MAC_BUF (mac); +printk ("%s: Ethernet addr: %s\n" , + dev->name,print_mac (mac, dev->dev_addr)); }if (lp->phy_type ==0 ) {
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 7/11 drivers/net/smc911x.c: Use print_mac
In reply to Joe Perches--- drivers/net/smc911x.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
drivers/net/smc911x.c +3 -4
@@ -2086,10 +2086,9 @@ static int __init smc911x_probe(struct net_device *dev, unsigned long ioaddr) "set using ifconfig\n", dev->name); }else {/* Print the Ethernet address */ -printk ("%s: Ethernet addr: " , dev->name); -for (i =0 ; i <5 ; i++) -printk ("%2.2x:" , dev->dev_addr[i]); -printk ("%2.2x\n" , dev->dev_addr[5 ]); +DECLARE_MAC_BUF (mac); +printk ("%s: Ethernet addr: %s\n" , + dev->name,print_mac (mac, dev->dev_addr)); }if (lp->phy_type ==0 ) {
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 8/11 drivers/net/sunvnet.c: Use print_mac
--- drivers/net/sunvnet.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-)
drivers/net/sunvnet.c +4 -6
@@ -1149,6 +1149,7 @@ static int __devinit vnet_port_probe(struct vio_dev *vdev,struct vnet *vp;const u64 *rmac;int len, i, err, switch_port; +DECLARE_MAC_BUF (mac);print_version ();
@@ -1213,12 +1214,9 @@ static int __devinit vnet_port_probe(struct vio_dev *vdev,dev_set_drvdata (&vdev->dev, port); -printk (KERN_INFO "%s: PORT ( remote-mac " , vp->dev->name); -for (i =0 ; i <6 ; i++) -printk ("%2.2x%c" , port->raddr[i], i ==5 ?' ' :':' ); -if (switch_port) -printk ("switch-port " ); -printk (")\n" ); +printk (KERN_INFO "%s: PORT ( remote-mac %s%s )\n" , + vp->dev->name,print_mac (mac, port->raddr), + switch_port ?" switch-port" :"" );vio_port_up (&port->vio);
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 8/11 drivers/net/sunvnet.c: Use print_mac
In reply to Joe Perches--- drivers/net/sunvnet.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-)
drivers/net/sunvnet.c +4 -6
@@ -1149,6 +1149,7 @@ static int __devinit vnet_port_probe(struct vio_dev *vdev,struct vnet *vp;const u64 *rmac;int len, i, err, switch_port; +DECLARE_MAC_BUF (mac);print_version ();
@@ -1213,12 +1214,9 @@ static int __devinit vnet_port_probe(struct vio_dev *vdev,dev_set_drvdata (&vdev->dev, port); -printk (KERN_INFO "%s: PORT ( remote-mac " , vp->dev->name); -for (i =0 ; i <6 ; i++) -printk ("%2.2x%c" , port->raddr[i], i ==5 ?' ' :':' ); -if (switch_port) -printk ("switch-port " ); -printk (")\n" ); +printk (KERN_INFO "%s: PORT ( remote-mac %s%s )\n" , + vp->dev->name,print_mac (mac, port->raddr), + switch_port ?" switch-port" :"" );vio_port_up (&port->vio);
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 9/11 drivers/net/tg3.c: Use print_mac
--- drivers/net/tg3.c | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-)
drivers/net/tg3.c +4 -3
@@ -12351,9 +12351,10 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,unsigned long tg3reg_base, tg3reg_len;struct net_device *dev;struct tg3 *tp; -int i, err, pm_cap; +int err, pm_cap;char str[40 ];u64 dma_mask, persist_dma_mask; +DECLARE_MAC_BUF (mac);if (tg3_version_printed++ ==0 )printk (KERN_INFO "%s" , version);
@@ -12632,7 +12633,8 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, goto err_out_apeunmap; } - printk(KERN_INFO "%s: Tigon3 [partno(%s) rev %04x PHY(%s)] (%s) %s Ethernet ", + printk(KERN_INFO "%s: Tigon3 [partno(%s) rev %04x PHY(%s)] " + "(%s) %s Ethernet %s\n", dev->name, tp->board_part_number, tp->pci_chip_rev_id,
@@ -12640,11 +12642,8 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, tg3_bus_string(tp, str), ((tp->tg3_flags & TG3_FLAG_10_100_ONLY) ? "10/100Base-TX" : ((tp->tg3_flags2 & TG3_FLG2_ANY_SERDES) ? "1000Base-SX" : - "10/100/1000Base-T")));
PATCH 9/11 drivers/net/tg3.c: Use print_mac
In reply to Joe Perches--- drivers/net/tg3.c | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-)
drivers/net/tg3.c +6 -7
@@ -12351,9 +12351,10 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,unsigned long tg3reg_base, tg3reg_len;struct net_device *dev;struct tg3 *tp; -int i, err, pm_cap; +int err, pm_cap;char str[40 ];u64 dma_mask, persist_dma_mask; +DECLARE_MAC_BUF (mac);if (tg3_version_printed++ ==0 )printk (KERN_INFO "%s" , version);
@@ -12632,7 +12633,8 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, goto err_out_apeunmap; } - printk(KERN_INFO "%s: Tigon3 [partno(%s) rev %04x PHY(%s)] (%s) %s Ethernet ", + printk(KERN_INFO "%s: Tigon3 [partno(%s) rev %04x PHY(%s)] " + "(%s) %s Ethernet %s\n", dev->name, tp->board_part_number, tp->pci_chip_rev_id,
@@ -12640,11 +12642,8 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,tg3_bus_string (tp, str), ((tp->tg3_flags &TG3_FLAG_10_100_ONLY ) ?"10/100Base-TX" : ((tp->tg3_flags2 &TG3_FLG2_ANY_SERDES ) ?"1000Base-SX" : - "10/100/1000Base-T"))); - -for (i =0 ; i <6 ; i++) -printk ("%2.2x%c" , dev->dev_addr[i], - i ==5 ?'\n' :':' ); +"10/100/1000Base-T" )), + print_mac(mac, dev->dev_addr)); printk(KERN_INFO "%s: RXcsums[%d] LinkChgREG[%d] " "MIirq[%d] ASF[%d] WireSpeed[%d] TSOcap[%d]\n",
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 10/11 drivers/net/tulip/de4x5.c: Use print_mac
--- drivers/net/tulip/de4x5.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-)
drivers/net/tulip/de4x5.c +2 -5
@@ -5361,14 +5361,11 @@ de4x5_dbg_open(struct net_device *dev) {struct de4x5_private *lp =netdev_priv (dev);int i; +DECLARE_MAC_BUF (mac);if (de4x5_debug &DEBUG_OPEN ) {printk ("%s: de4x5 opening with irq %d\n" ,dev->name,dev->irq); -printk ("\tphysical address: " ); -for (i=0 ;i<6 ;i++) { -printk ("%2.2x:" ,(short )dev->dev_addr[i]); - } -printk ("\n" ); +printk ("\tphysical address: %s\n" ,print_mac (mac, dev->dev_addr));printk ("Descriptor head addresses:\n" );printk ("\t0x%8.8lx 0x%8.8lx\n" ,(u_long )lp->rx_ring,(u_long )lp->tx_ring);printk ("Descriptor addresses:\nRX: " );
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 10/11 drivers/net/tulip/de4x5.c: Use print_mac
In reply to Joe Perches--- drivers/net/tulip/de4x5.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-)
drivers/net/tulip/de4x5.c +2 -5
@@ -5361,14 +5361,11 @@ de4x5_dbg_open(struct net_device *dev) {struct de4x5_private *lp =netdev_priv (dev);int i; +DECLARE_MAC_BUF (mac);if (de4x5_debug &DEBUG_OPEN ) {printk ("%s: de4x5 opening with irq %d\n" ,dev->name,dev->irq); -printk ("\tphysical address: " ); -for (i=0 ;i<6 ;i++) { -printk ("%2.2x:" ,(short )dev->dev_addr[i]); - } -printk ("\n" ); +printk ("\tphysical address: %s\n" ,print_mac (mac, dev->dev_addr));printk ("Descriptor head addresses:\n" );printk ("\t0x%8.8lx 0x%8.8lx\n" ,(u_long )lp->rx_ring,(u_long )lp->tx_ring);printk ("Descriptor addresses:\nRX: " );
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 11/11 drivers/net/usb/catc.c: Use print_mac
--- drivers/net/usb/catc.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/usb/catc.c +4 -4
@@ -757,6 +757,7 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *idstruct catc *catc;u8 broadcast[6 ];int i, pktsz; +DECLARE_MAC_BUF (mac);if (usb_set_interface (usbdev, intf->altsetting->desc.bInterfaceNumber,1 )) {
@@ -891,11 +892,10 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *idf5u011_rxmode (catc, catc->rxmode); }dbg ("Init done." ); -printk (KERN_INFO "%s: %s USB Ethernet at usb-%s-%s, " , +printk (KERN_INFO "%s: %s USB Ethernet at usb-%s-%s, %s\n" , netdev->name, (catc->is_f5u011) ?"Belkin F5U011" :"CATC EL1210A NetMate" , - usbdev->bus->bus_name, usbdev->devpath); -for (i =0 ; i <5 ; i++)printk ("%2.2x:" , netdev->dev_addr[i]); -printk ("%2.2x.\n" , netdev->dev_addr[i]); + usbdev->bus->bus_name, usbdev->devpath, +print_mac (mac, netdev->dev_addr));usb_set_intfdata (intf, catc);SET_NETDEV_DEV (netdev, &intf->dev);
Signature · 6 lines
1.5.3.7.949.g2221a6 - To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 11/11 drivers/net/usb/catc.c: Use print_mac
In reply to Joe Perches--- drivers/net/usb/catc.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/usb/catc.c +4 -4
@@ -757,6 +757,7 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *idstruct catc *catc;u8 broadcast[6 ];int i, pktsz; +DECLARE_MAC_BUF (mac);if (usb_set_interface (usbdev, intf->altsetting->desc.bInterfaceNumber,1 )) {
@@ -891,11 +892,10 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *idf5u011_rxmode (catc, catc->rxmode); }dbg ("Init done." ); -printk (KERN_INFO "%s: %s USB Ethernet at usb-%s-%s, " , +printk (KERN_INFO "%s: %s USB Ethernet at usb-%s-%s, %s\n" , netdev->name, (catc->is_f5u011) ?"Belkin F5U011" :"CATC EL1210A NetMate" , - usbdev->bus->bus_name, usbdev->devpath); -for (i =0 ; i <5 ; i++)printk ("%2.2x:" , netdev->dev_addr[i]); -printk ("%2.2x.\n" , netdev->dev_addr[i]); + usbdev->bus->bus_name, usbdev->devpath, +print_mac (mac, netdev->dev_addr));usb_set_intfdata (intf, catc);SET_NETDEV_DEV (netdev, &intf->dev);
Signature · 1 line
1.5.3.7.949.g2221a6
PATCH 11/11 drivers/net/usb/catc.c: Use print_mac
In reply to Joe Perches--- drivers/net/usb/catc.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/usb/catc.c +4 -4
@@ -757,6 +757,7 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *idstruct catc *catc;u8 broadcast[6 ];int i, pktsz; +DECLARE_MAC_BUF (mac);if (usb_set_interface (usbdev, intf->altsetting->desc.bInterfaceNumber,1 )) {
@@ -891,11 +892,10 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *idf5u011_rxmode (catc, catc->rxmode); }dbg ("Init done." ); -printk (KERN_INFO "%s: %s USB Ethernet at usb-%s-%s, " , +printk (KERN_INFO "%s: %s USB Ethernet at usb-%s-%s, %s\n" , netdev->name, (catc->is_f5u011) ?"Belkin F5U011" :"CATC EL1210A NetMate" , - usbdev->bus->bus_name, usbdev->devpath); -for (i =0 ; i <5 ; i++)printk ("%2.2x:" , netdev->dev_addr[i]); -printk ("%2.2x.\n" , netdev->dev_addr[i]); + usbdev->bus->bus_name, usbdev->devpath, +print_mac (mac, netdev->dev_addr));usb_set_intfdata (intf, catc);SET_NETDEV_DEV (netdev, &intf->dev);
Signature · 1 line
1.5.3.7.949.g2221a6
Re: [PATCH 09/11] drivers/net/tg3.c: Use print_mac
In reply to Joe PerchesFrom: Joe Perches <[email protected]>
Date: Fri, 14 Dec 2007 14:34:10 -0800
Quoted 1 line
Signed-off-by Joe Perches <[email protected]>
Applied to net-2.6.25
Re: [PATCH 08/11] drivers/net/sunvnet.c: Use print_mac
In reply to Joe PerchesFrom: Joe Perches <[email protected]>
Date: Fri, 14 Dec 2007 14:34:09 -0800
Quoted 1 line
Signed-off-by Joe Perches <[email protected]>
Applied to net-2.6.25
Re: [PATCH 05/11] drivers/net/niu.c: Use print_mac
In reply to Joe PerchesFrom: Joe Perches <[email protected]>
Date: Fri, 14 Dec 2007 14:34:06 -0800
Quoted 1 line
Signed-off-by Joe Perches <[email protected]>
Applied to net-2.6.25
PATCH 2/11 drivers/net/hplance.c: Use print_mac
In reply to Joe Perches--- drivers/net/hplance.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-)
drivers/net/hplance.c +4 -8
@@ -77,7 +77,7 @@ static int __devinit hplance_init_one(struct dio_dev *d, {struct net_device *dev;int err = -ENOMEM ; -int i; +DECLARE_MAC_BUF (mac); dev =alloc_etherdev (sizeof (struct hplance_private ));if (!dev)
@@ -95,13 +95,9 @@ 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 %s, irq %d\n" , + dev->name, d->name, d->scode, +print_mac (mac, dev->dev_addr), d->irq);return 0 ;
Signature · 1 line
1.5.3.7.949.g2221a6