diff options
author | Andy Shevchenko <andy.shevchenko@gmail.com> | 2010-09-11 13:33:28 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-20 23:06:11 -0400 |
commit | 5cac1f665fd18c75c9914ecd3fe808cebfe639f0 (patch) | |
tree | 4e3abbfed5b5ade69bf6cdbb22ecb9bdc3c9e127 /drivers/media/video/cx23885 | |
parent | f89ca6fae204ca0c6eb0bb444290ad8032bf7aa2 (diff) |
V4L/DVB: media: cx23885: use '%pM' format to print MAC address
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-dvb.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c index 3d70af283881..0674ea1bf863 100644 --- a/drivers/media/video/cx23885/cx23885-dvb.c +++ b/drivers/media/video/cx23885/cx23885-dvb.c | |||
@@ -1017,10 +1017,7 @@ static int dvb_register(struct cx23885_tsport *port) | |||
1017 | /* Read entire EEPROM */ | 1017 | /* Read entire EEPROM */ |
1018 | dev->i2c_bus[0].i2c_client.addr = 0xa0 >> 1; | 1018 | dev->i2c_bus[0].i2c_client.addr = 0xa0 >> 1; |
1019 | tveeprom_read(&dev->i2c_bus[0].i2c_client, eeprom, sizeof(eeprom)); | 1019 | tveeprom_read(&dev->i2c_bus[0].i2c_client, eeprom, sizeof(eeprom)); |
1020 | printk(KERN_INFO "TeVii S470 MAC= " | 1020 | printk(KERN_INFO "TeVii S470 MAC= %pM\n", eeprom + 0xa0); |
1021 | "%02X:%02X:%02X:%02X:%02X:%02X\n", | ||
1022 | eeprom[0xa0], eeprom[0xa1], eeprom[0xa2], | ||
1023 | eeprom[0xa3], eeprom[0xa4], eeprom[0xa5]); | ||
1024 | memcpy(port->frontends.adapter.proposed_mac, eeprom + 0xa0, 6); | 1021 | memcpy(port->frontends.adapter.proposed_mac, eeprom + 0xa0, 6); |
1025 | break; | 1022 | break; |
1026 | } | 1023 | } |