]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixgbevf: print MAC via printk format specifier
authorDanny Kukawka <danny.kukawka@bisect.de>
Fri, 24 Feb 2012 03:45:56 +0000 (03:45 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 15:57:16 +0000 (23:57 +0800)
Print MAC/dev_addr via printk extended format specifier %pM
instead of custom code.

(cherry picked from commit f794e7efe40147ed0c34f889b75298fec10e66b8)
Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbevf/ixgbevf_main.c

index 0ca355e0ffa3c2ba054aae2f15d61138fec4f148..f6e3fa0dfeaa544fcd22807ef17e3ccdc6b1f8c7 100644 (file)
@@ -3428,13 +3428,7 @@ static int __devinit ixgbevf_probe(struct pci_dev *pdev,
        ixgbevf_init_last_counter_stats(adapter);
 
        /* print the MAC address */
-       hw_dbg(hw, "%2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x\n",
-              netdev->dev_addr[0],
-              netdev->dev_addr[1],
-              netdev->dev_addr[2],
-              netdev->dev_addr[3],
-              netdev->dev_addr[4],
-              netdev->dev_addr[5]);
+       hw_dbg(hw, "%pM\n", netdev->dev_addr);
 
        hw_dbg(hw, "MAC: %d\n", hw->mac.type);