Commit 517cd81c authored by Danny Kukawka's avatar Danny Kukawka Committed by David S. Miller

usb/cdc_ncm: print MAC via printk format specifier

Print MAC/dev_addr via printk extended format specifier %pM
instead of custom code.
Signed-off-by: default avatarDanny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2d5ba835
...@@ -579,11 +579,7 @@ static int cdc_ncm_bind(struct usbnet *dev, struct usb_interface *intf) ...@@ -579,11 +579,7 @@ static int cdc_ncm_bind(struct usbnet *dev, struct usb_interface *intf)
if (temp) if (temp)
goto error2; goto error2;
dev_info(&dev->udev->dev, "MAC-Address: " dev_info(&dev->udev->dev, "MAC-Address: %pM\n", dev->net->dev_addr);
"0x%02x:0x%02x:0x%02x:0x%02x:0x%02x:0x%02x\n",
dev->net->dev_addr[0], dev->net->dev_addr[1],
dev->net->dev_addr[2], dev->net->dev_addr[3],
dev->net->dev_addr[4], dev->net->dev_addr[5]);
dev->in = usb_rcvbulkpipe(dev->udev, dev->in = usb_rcvbulkpipe(dev->udev,
ctx->in_ep->desc.bEndpointAddress & USB_ENDPOINT_NUMBER_MASK); ctx->in_ep->desc.bEndpointAddress & USB_ENDPOINT_NUMBER_MASK);
......
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