projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c28446c
)
rocker: print switch ID consistent with phys_switch_id sysfs node
author
Scott Feldman
<sfeldma@gmail.com>
Thu, 13 Aug 2015 01:44:13 +0000
(18:44 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 14 Aug 2015 00:05:46 +0000
(17:05 -0700)
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>
drivers/net/ethernet/rocker/rocker.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/rocker/rocker.c
b/drivers/net/ethernet/rocker/rocker.c
index cf9c0b241d078a4776c1d4492d27062b50f062b5..27f3e2b2ae00b08fe488855bfa8492ab3eb7e12f 100644
(file)
--- 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;