Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752530AbZL1XaH (ORCPT ); Mon, 28 Dec 2009 18:30:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751364AbZL1XaG (ORCPT ); Mon, 28 Dec 2009 18:30:06 -0500 Received: from exprod6ob109.obsmtp.com ([64.18.1.22]:43701 "HELO psmtp.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1751088AbZL1XaF convert rfc822-to-8bit (ORCPT ); Mon, 28 Dec 2009 18:30:05 -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/via-velocity.c: use %pM to shown MAC address Date: Mon, 28 Dec 2009 18:30:08 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] drivers/net/via-velocity.c: use %pM to shown MAC address Thread-Index: AcqIFbFf65UgOMLAQTSKH9EWB9gj7g== From: "H Hartley Sweeten" To: , Cc: "David Miller" X-OriginalArrivalTime: 28 Dec 2009 23:30:02.0545 (UTC) FILETIME=[ADD2E210:01CA8815] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1137 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/via-velocity.c b/drivers/net/via-velocity.c index 4ceb441..cee8fa2 100644 --- a/drivers/net/via-velocity.c +++ b/drivers/net/via-velocity.c @@ -2702,10 +2702,8 @@ static void __devinit velocity_print_info(struct velocity_info *vptr) struct net_device *dev = vptr->dev; printk(KERN_INFO "%s: %s\n", dev->name, get_chip_name(vptr->chip_id)); - printk(KERN_INFO "%s: Ethernet Address: %2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X\n", - dev->name, - dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2], - dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]); + printk(KERN_INFO "%s: Ethernet Address: %pM\n", + dev->name, dev->dev_addr); } static u32 velocity_get_link(struct net_device *dev) -- 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/