diff options
author | Mitch Williams <mitch.a.williams@intel.com> | 2014-05-10 00:49:07 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2014-06-08 05:01:37 -0400 |
commit | b34f90e7040d8c20ceb51b26359ea6014a707921 (patch) | |
tree | 1fe627f56c81ec75220f0b95dc97a72682657261 | |
parent | 80e7289356cdba946dbf1563f7d73f46d5115248 (diff) |
i40evf: use correct format for printing MAC addresses
The correct format is %pM, not %pMAC.
Change-ID: Idb335723a966fe56db3a72b9c07c08ca66f9db3c
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r-- | drivers/net/ethernet/intel/i40evf/i40evf_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c index 5fd60ddb8dda..590a9a42775f 100644 --- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c +++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c | |||
@@ -2058,7 +2058,7 @@ static void i40evf_init_task(struct work_struct *work) | |||
2058 | netdev->hw_features &= ~NETIF_F_RXCSUM; | 2058 | netdev->hw_features &= ~NETIF_F_RXCSUM; |
2059 | 2059 | ||
2060 | if (!is_valid_ether_addr(adapter->hw.mac.addr)) { | 2060 | if (!is_valid_ether_addr(adapter->hw.mac.addr)) { |
2061 | dev_info(&pdev->dev, "Invalid MAC address %pMAC, using random\n", | 2061 | dev_info(&pdev->dev, "Invalid MAC address %pM, using random\n", |
2062 | adapter->hw.mac.addr); | 2062 | adapter->hw.mac.addr); |
2063 | random_ether_addr(adapter->hw.mac.addr); | 2063 | random_ether_addr(adapter->hw.mac.addr); |
2064 | } | 2064 | } |
@@ -2116,7 +2116,7 @@ static void i40evf_init_task(struct work_struct *work) | |||
2116 | 2116 | ||
2117 | netif_tx_stop_all_queues(netdev); | 2117 | netif_tx_stop_all_queues(netdev); |
2118 | 2118 | ||
2119 | dev_info(&pdev->dev, "MAC address: %pMAC\n", adapter->hw.mac.addr); | 2119 | dev_info(&pdev->dev, "MAC address: %pM\n", adapter->hw.mac.addr); |
2120 | if (netdev->features & NETIF_F_GRO) | 2120 | if (netdev->features & NETIF_F_GRO) |
2121 | dev_info(&pdev->dev, "GRO is enabled\n"); | 2121 | dev_info(&pdev->dev, "GRO is enabled\n"); |
2122 | 2122 | ||