Skip to content

Commit 3b8dff3

Browse files
bigguinessdavem330
authored andcommitted
drivers/net/usb/catc.c: use %pM to shown MAC address
Use the %pM kernel extension to display the MAC address. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d998ab0 commit 3b8dff3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/net/usb/catc.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -897,11 +897,9 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *id
897897
f5u011_rxmode(catc, catc->rxmode);
898898
}
899899
dbg("Init done.");
900-
printk(KERN_INFO "%s: %s USB Ethernet at usb-%s-%s, ",
900+
printk(KERN_INFO "%s: %s USB Ethernet at usb-%s-%s, %pM.\n",
901901
netdev->name, (catc->is_f5u011) ? "Belkin F5U011" : "CATC EL1210A NetMate",
902-
usbdev->bus->bus_name, usbdev->devpath);
903-
for (i = 0; i < 5; i++) printk("%2.2x:", netdev->dev_addr[i]);
904-
printk("%2.2x.\n", netdev->dev_addr[i]);
902+
usbdev->bus->bus_name, usbdev->devpath, netdev->dev_addr);
905903
usb_set_intfdata(intf, catc);
906904

907905
SET_NETDEV_DEV(netdev, &intf->dev);

0 commit comments

Comments
 (0)