diff options
author | Joe Perches <joe@perches.com> | 2015-06-15 04:01:45 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-07-22 18:22:29 +0200 |
commit | dd70b27eecdd4e13378a5e253dbd426058e164ef (patch) | |
tree | 8cb7a31c9e7d81a69b3a046ce774cad711698534 | |
parent | [media] tc358743: allow event subscription (diff) | |
download | linux-dd70b27eecdd4e13378a5e253dbd426058e164ef.tar.xz linux-dd70b27eecdd4e13378a5e253dbd426058e164ef.zip |
[media] media: ttpci: Use vsprintf %pM extension
Format mac addresses with the normal kernel extension.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | drivers/media/pci/ttpci/ttpci-eeprom.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/pci/ttpci/ttpci-eeprom.c b/drivers/media/pci/ttpci/ttpci-eeprom.c index 32d43156c548..c6f31f2712bc 100644 --- a/drivers/media/pci/ttpci/ttpci-eeprom.c +++ b/drivers/media/pci/ttpci/ttpci-eeprom.c @@ -162,9 +162,7 @@ int ttpci_eeprom_parse_mac(struct i2c_adapter *adapter, u8 *proposed_mac) } memcpy(proposed_mac, decodedMAC, 6); - dprintk("adapter has MAC addr = %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n", - decodedMAC[0], decodedMAC[1], decodedMAC[2], - decodedMAC[3], decodedMAC[4], decodedMAC[5]); + dprintk("adapter has MAC addr = %pM\n", decodedMAC); return 0; } |