Skip to contentSkip to conversation

drivers/media/dvb/dvb-core/dvb_net.c: use %pM to show MAC address

PATCH Applied H Hartley Sweeten 2 participants 2 messages Jan 5, 2010 – Jan 7, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/media/dvb/dvb-core/dvb_net.c: use %pM to show MAC address

Use the %pM kernel extension to display the MAC address and mask.

The only difference in the output is that the output is shown in the usual colon-separated hex notation.

---

Repost due to merge issues.

drivers/media/dvb/dvb-core/dvb_net.c +2 -5
index 8b8558f..da6552d 100644
@@ -949,11 +949,8 @@ static int dvb_net_filter_sec_set(struct net_device *dev,
 	(*secfilter)->filter_mask[10] = mac_mask[1];
 	(*secfilter)->filter_mask[11]=mac_mask[0];
 
-	dprintk("%s: filter mac=%02x %02x %02x %02x %02x %02x\n",
-	       dev->name, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
-	dprintk("%s: filter mask=%02x %02x %02x %02x %02x %02x\n",
-	       dev->name, mac_mask[0], mac_mask[1], mac_mask[2],
-	       mac_mask[3], mac_mask[4], mac_mask[5]);
+	dprintk("%s: filter mac=%pM\n", dev->name, mac);
+	dprintk("%s: filter mask=%pM\n", dev->name, mac_mask);
 
 	return 0;
 }
maintainer Applied
#1 lore raw

From: H Hartley Sweeten <[email protected]>
Date: Tue, 5 Jan 2010 09:45:21 -0700

Quoted 6 lines

Use the %pM kernel extension to display the MAC address and mask.

The only difference in the output is that the output is shown in the usual colon-separated hex notation.

Applied.