Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752504AbZL1Xdd (ORCPT ); Mon, 28 Dec 2009 18:33:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751711AbZL1Xdc (ORCPT ); Mon, 28 Dec 2009 18:33:32 -0500 Received: from exprod6og115.obsmtp.com ([64.18.1.35]:40761 "HELO exprod6og115.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751364AbZL1Xdb convert rfc822-to-8bit (ORCPT ); Mon, 28 Dec 2009 18:33:31 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Subject: [PATCH] drivers/net/xilinx_emaclite.c: use %pM to shown MAC address Date: Mon, 28 Dec 2009 18:33:35 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] drivers/net/xilinx_emaclite.c: use %pM to shown MAC address Thread-Index: AcqIFiz0gsfR5aFVRYS9l9kIZ729Hg== From: "H Hartley Sweeten" To: , Cc: "David Miller" X-OriginalArrivalTime: 28 Dec 2009 23:33:29.0609 (UTC) FILETIME=[293E5790:01CA8816] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1116 Lines: 29 Use the %pM kernel extension to display the MAC address. Signed-off-by: H Hartley Sweeten Cc: David S. Miller --- diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index 8c777ba..f7fe1aa 100644 --- a/drivers/net/xilinx_emaclite.c +++ b/drivers/net/xilinx_emaclite.c @@ -925,11 +925,7 @@ static int __devinit xemaclite_of_probe(struct of_device *ofdev, /* Set the MAC address in the EmacLite device */ xemaclite_set_mac_address(lp, ndev->dev_addr); - dev_info(dev, - "MAC address is now %2x:%2x:%2x:%2x:%2x:%2x\n", - ndev->dev_addr[0], ndev->dev_addr[1], - ndev->dev_addr[2], ndev->dev_addr[3], - ndev->dev_addr[4], ndev->dev_addr[5]); + dev_info(dev, "MAC address is now %pM\n", ndev->dev_addr); ndev->netdev_ops = &xemaclite_netdev_ops; ndev->flags &= ~IFF_MULTICAST; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/