Skip to content

Commit e583482

Browse files
bigguinessdavem330
authored andcommitted
drivers/net/octeon/octeon_mgmt.c: use %pM to shown MAC address
Use the %pM kernel extension to display the MAC address. Signed-off-by: H Hartley Sweeten <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fa876b4 commit e583482

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

drivers/net/octeon/octeon_mgmt.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,11 +1119,8 @@ static int __init octeon_mgmt_probe(struct platform_device *pdev)
11191119

11201120
if (p->port >= octeon_bootinfo->mac_addr_count)
11211121
dev_err(&pdev->dev,
1122-
"Error %s: Using MAC outside of the assigned range: "
1123-
"%02x:%02x:%02x:%02x:%02x:%02x\n", netdev->name,
1124-
netdev->dev_addr[0], netdev->dev_addr[1],
1125-
netdev->dev_addr[2], netdev->dev_addr[3],
1126-
netdev->dev_addr[4], netdev->dev_addr[5]);
1122+
"Error %s: Using MAC outside of the assigned range: %pM\n",
1123+
netdev->name, netdev->dev_addr);
11271124

11281125
if (register_netdev(netdev))
11291126
goto err;

0 commit comments

Comments
 (0)