diff options
author | hartleys <hartleys@visionengravers.com> | 2010-01-05 07:45:21 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-07 10:13:58 +0100 |
commit | 0e05a613f40a1210a050ebd1ecfd5434420ae5b2 (patch) | |
tree | 45a37c9a6994072ba9fd7bfa3ab892e4b54ddc25 /drivers | |
parent | drivers/atm/lanai.c: use %pM to show MAC address (diff) | |
download | linux-0e05a613f40a1210a050ebd1ecfd5434420ae5b2.tar.xz linux-0e05a613f40a1210a050ebd1ecfd5434420ae5b2.zip |
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.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_net.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_net.c b/drivers/media/dvb/dvb-core/dvb_net.c index 8b8558fcb042..da6552d32cfe 100644 --- a/drivers/media/dvb/dvb-core/dvb_net.c +++ b/drivers/media/dvb/dvb-core/dvb_net.c @@ -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; } |