rocker: print switch ID consistent with phys_switch_id sysfs node
Subsystems (3)
PATCH 1/1 rocker: print switch ID consistent with phys_switch_id sysfs node
From: Scott Feldman <[email protected]>
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 <[email protected]>
--- drivers/net/ethernet/rocker/rocker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/rocker/rocker.c +2 -1
@@ -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 ;
Signature · 1 line
1.7.10.4
From: [email protected]
Date: Wed, 12 Aug 2015 18:44:13 -0700
Quoted 6 lines
From: Scott Feldman <[email protected]>
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_idnode.Signed-off-by Scott Feldman <[email protected]>
Applied.