wireless: ray_cs: use '%pm' format option to print MAC
Subsystems (4)
PATCH 1/2 wireless: ray_cs: use '%pm' format option to print MAC
Signed-off-by Andy Shevchenko <[email protected]>
Cc "John W. Linville" <[email protected]>
--- drivers/net/wireless/ray_cs.c | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-)
drivers/net/wireless/ray_cs.c +4 -10
@@ -1776,11 +1776,8 @@ static void ray_update_multi_list(struct net_device *dev, int all)/* Copy the kernel's list of MC addresses to card */ netdev_for_each_mc_addr (ha, dev) {memcpy_toio (p, ha->addr,ETH_ALEN ); -dev_dbg (&link->dev, -"ray_update_multi add addr %02x%02x%02x%02x%02x%02x\n" , - ha->addr[0 ], ha->addr[1 ], - ha->addr[2 ], ha->addr[3 ], - ha->addr[4 ], ha->addr[5 ]); +dev_dbg (&link->dev,"ray_update_multi add addr %pm\n" , + ha->addr); p +=ETH_ALEN ; i++; }
@@ -2015,11 +2012,8 @@ static irqreturn_t ray_interrupt(int irq, void *dev_id)memcpy_fromio (&local->bss_id, prcs->var.rejoin_net_complete. bssid,ADDRLEN ); -dev_dbg (&link->dev, -"ray_cs new BSSID = %02x%02x%02x%02x%02x%02x\n" , - local->bss_id[0 ], local->bss_id[1 ], - local->bss_id[2 ], local->bss_id[3 ], - local->bss_id[4 ], local->bss_id[5 ]); +dev_dbg (&link->dev,"ray_cs new BSSID = %pm\n" , + local->bss_id);if (!sniffer)authenticate (local); }
Signature · 6 lines
1.7.2.3 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 2/2 atm: lanai: use kernel's '%pM' format option to print MAC
Signed-off-by Andy Shevchenko <[email protected]>
Cc Chas Williams <[email protected]>
--- drivers/atm/lanai.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-)
drivers/atm/lanai.c +2 -5
@@ -2241,11 +2241,8 @@ static int __devinit lanai_dev_open(struct atm_dev *atmdev)memcpy (atmdev->esi,eeprom_mac (lanai),ESI_LEN );lanai_timed_poll_start (lanai); printk(KERN_NOTICE DEV_LABEL "(itf %d): rev.%d, base=0x%lx, irq=%u " -"(%02X-%02X-%02X-%02X-%02X-%02X)\n" , lanai->number, - (int ) lanai->pci->revision, (unsigned long ) lanai->base, - lanai->pci->irq, - atmdev->esi[0 ], atmdev->esi[1 ], atmdev->esi[2 ], - atmdev->esi[3], atmdev->esi[4], atmdev->esi[5]); +"(%pMF)\n" , lanai->number, (int ) lanai->pci->revision, + (unsigned long) lanai->base, lanai->pci->irq, atmdev->esi); printk(KERN_NOTICE DEV_LABEL "(itf %d): LANAI%s, serialno=%u(0x%X), ""board_rev=%d\n" , lanai->number, lanai->type==lanai2 ? "2" : "HB", (unsigned int) lanai->serialno,
Signature · 1 line
1.7.2.3
Re: [PATCH 2/2] atm: lanai: use kernel's '%pM' format option to print MAC
From: Andy Shevchenko <[email protected]>
Date: Thu, 2 Dec 2010 14:45:08 +0200
Quoted 1 line
Signed-off-by Andy Shevchenko <[email protected]>
Applied, thanks.