netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] rocker: print switch ID consistent with phys_switch_id sysfs node
@ 2015-08-13  1:44 sfeldma
  2015-08-14  0:06 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: sfeldma @ 2015-08-13  1:44 UTC (permalink / raw)
  To: netdev; +Cc: jiri

From: Scott Feldman <sfeldma@gmail.com>

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>
---
 drivers/net/ethernet/rocker/rocker.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/rocker/rocker.c b/drivers/net/ethernet/rocker/rocker.c
index 619b2e2..d963cdc 100644
--- a/drivers/net/ethernet/rocker/rocker.c
+++ b/drivers/net/ethernet/rocker/rocker.c
@@ -5193,7 +5193,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;
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] rocker: print switch ID consistent with phys_switch_id sysfs node
  2015-08-13  1:44 [PATCH net-next] rocker: print switch ID consistent with phys_switch_id sysfs node sfeldma
@ 2015-08-14  0:06 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-08-14  0:06 UTC (permalink / raw)
  To: sfeldma; +Cc: netdev, jiri

From: sfeldma@gmail.com
Date: Wed, 12 Aug 2015 18:44:13 -0700

> From: Scott Feldman <sfeldma@gmail.com>
> 
> 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>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-14  0:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-13  1:44 [PATCH net-next] rocker: print switch ID consistent with phys_switch_id sysfs node sfeldma
2015-08-14  0:06 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).