Commit 5cac1f66 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Mauro Carvalho Chehab

V4L/DVB: media: cx23885: use '%pM' format to print MAC address

Signed-off-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent f89ca6fa
......@@ -1017,10 +1017,7 @@ static int dvb_register(struct cx23885_tsport *port)
/* Read entire EEPROM */
dev->i2c_bus[0].i2c_client.addr = 0xa0 >> 1;
tveeprom_read(&dev->i2c_bus[0].i2c_client, eeprom, sizeof(eeprom));
printk(KERN_INFO "TeVii S470 MAC= "
"%02X:%02X:%02X:%02X:%02X:%02X\n",
eeprom[0xa0], eeprom[0xa1], eeprom[0xa2],
eeprom[0xa3], eeprom[0xa4], eeprom[0xa5]);
printk(KERN_INFO "TeVii S470 MAC= %pM\n", eeprom + 0xa0);
memcpy(port->frontends.adapter.proposed_mac, eeprom + 0xa0, 6);
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment