summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/rocker/rocker.c
diff options
context:
space:
mode:
authorScott Feldman <sfeldma@gmail.com>2015-08-13 04:44:13 +0300
committerDavid S. Miller <davem@davemloft.net>2015-08-14 03:05:46 +0300
commitc8beb5b2613418e7ac1ffaee1f0796e77a4000be (patch)
tree6bfd98155d5ca4195a181ae6ce427add5ca62aaf /drivers/net/ethernet/rocker/rocker.c
parentc28446c2b78fde4b47a4baf3b2cf7c3c4ca621dc (diff)
downloadlinux-c8beb5b2613418e7ac1ffaee1f0796e77a4000be.tar.xz
rocker: print switch ID consistent with phys_switch_id sysfs node
On sucessful probe, driver prints the switch ID. This patch changes the format of the printed ID to match what's used in sysfs phys_switch_id node. Signed-off-by: Scott Feldman <sfeldma@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/rocker/rocker.c')
-rw-r--r--drivers/net/ethernet/rocker/rocker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/rocker/rocker.c b/drivers/net/ethernet/rocker/rocker.c
index cf9c0b241d07..27f3e2b2ae00 100644
--- a/drivers/net/ethernet/rocker/rocker.c
+++ b/drivers/net/ethernet/rocker/rocker.c
@@ -5183,7 +5183,8 @@ static int rocker_probe(struct pci_dev *pdev, const struct pci_device_id *id)
goto err_probe_ports;
}
- dev_info(&pdev->dev, "Rocker switch with id %016llx\n", rocker->hw.id);
+ dev_info(&pdev->dev, "Rocker switch with id %*phN\n",
+ (int)sizeof(rocker->hw.id), &rocker->hw.id);
return 0;