Commit be395157 authored by hartleys's avatar hartleys Committed by Mauro Carvalho Chehab

V4L/DVB (13959): cx23885/cx23885-dvb.c: use %pM to show MAC address

Use the %pM kernel extension to display the MAC address.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 2714b3b9
...@@ -1000,15 +1000,8 @@ static int dvb_register(struct cx23885_tsport *port) ...@@ -1000,15 +1000,8 @@ static int dvb_register(struct cx23885_tsport *port)
netup_get_card_info(&dev->i2c_bus[0].i2c_adap, &cinfo); netup_get_card_info(&dev->i2c_bus[0].i2c_adap, &cinfo);
memcpy(port->frontends.adapter.proposed_mac, memcpy(port->frontends.adapter.proposed_mac,
cinfo.port[port->nr - 1].mac, 6); cinfo.port[port->nr - 1].mac, 6);
printk(KERN_INFO "NetUP Dual DVB-S2 CI card port%d MAC=" printk(KERN_INFO "NetUP Dual DVB-S2 CI card port%d MAC=%pM\n",
"%02X:%02X:%02X:%02X:%02X:%02X\n", port->nr, port->frontends.adapter.proposed_mac);
port->nr,
port->frontends.adapter.proposed_mac[0],
port->frontends.adapter.proposed_mac[1],
port->frontends.adapter.proposed_mac[2],
port->frontends.adapter.proposed_mac[3],
port->frontends.adapter.proposed_mac[4],
port->frontends.adapter.proposed_mac[5]);
netup_ci_init(port); netup_ci_init(port);
break; 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