mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] amso1100/c2_provider.c: use %pM to shown MAC address
@ 2009-12-29 16:22 H Hartley Sweeten
  2009-12-31  5:59 ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: H Hartley Sweeten @ 2009-12-29 16:22 UTC (permalink / raw)
  To: linux-kernel; +Cc: David Miller, tom

Use the %pM kernel extension to display the MAC address.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Tom Tucker <tom@opengridcomputing.com>

---

diff --git a/drivers/infiniband/hw/amso1100/c2_provider.c b/drivers/infiniband/hw/amso1100/c2_provider.c
index ad723bd..712314a 100644
--- a/drivers/infiniband/hw/amso1100/c2_provider.c
+++ b/drivers/infiniband/hw/amso1100/c2_provider.c
@@ -760,10 +760,7 @@ static struct net_device *c2_pseudo_netdev_init(struct c2_dev *c2dev)
 	memcpy_fromio(netdev->dev_addr, c2dev->kva + C2_REGS_RDMA_ENADDR, 6);
 
 	/* Print out the MAC address */
-	pr_debug("%s: MAC %02X:%02X:%02X:%02X:%02X:%02X\n",
-		netdev->name,
-		netdev->dev_addr[0], netdev->dev_addr[1], netdev->dev_addr[2],
-		netdev->dev_addr[3], netdev->dev_addr[4], netdev->dev_addr[5]);
+	pr_debug("%s: MAC %pM\n", netdev->name, netdev->dev_addr);
 
 #if 0
 	/* Disable network packets */ 

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

end of thread, other threads:[~2010-01-04 18:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-29 16:22 [PATCH] amso1100/c2_provider.c: use %pM to shown MAC address H Hartley Sweeten
2009-12-31  5:59 ` David Miller
2009-12-31 14:32   ` H Hartley Sweeten
2010-01-04  6:24     ` David Miller
2010-01-04 17:39       ` H Hartley Sweeten
2010-01-04 18:42         ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome