From patchwork Wed Dec 30 18:34:18 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hartley Sweeten X-Patchwork-Id: 41929 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 35CBC1007D8 for ; Thu, 31 Dec 2009 05:34:45 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753009AbZL3SeU (ORCPT ); Wed, 30 Dec 2009 13:34:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752790AbZL3SeT (ORCPT ); Wed, 30 Dec 2009 13:34:19 -0500 Received: from exprod6ob109.obsmtp.com ([64.18.1.22]:39858 "HELO psmtp.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1751575AbZL3SeT convert rfc822-to-8bit (ORCPT ); Wed, 30 Dec 2009 13:34:19 -0500 Received: from source ([63.240.6.3]) (using TLSv1) by exprod6ob109.postini.com ([64.18.5.12]) with SMTP ID DSNKSzudKsMfgwBVa8NF3k1yeQaGQSAgYgBR@postini.com; Wed, 30 Dec 2009 10:34:18 PST Received: from d01smtp06.Mi8.com ([172.16.1.239]) by Outbound01.Mi8.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 30 Dec 2009 13:34:17 -0500 Received: from mi8nycmail19.Mi8.com ([172.16.7.219]) by d01smtp06.Mi8.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 30 Dec 2009 13:34:17 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: [PATCH] drivers/net/vxge/vxge-main.c: use %pM to show MAC address Date: Wed, 30 Dec 2009 13:34:18 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] drivers/net/vxge/vxge-main.c: use %pM to show MAC address Thread-Index: AcqJfrIgrAAOgYYTRwKuBo2sndYmAg== From: "H Hartley Sweeten" To: , Cc: "David Miller" X-OriginalArrivalTime: 30 Dec 2009 18:34:17.0380 (UTC) FILETIME=[B1B51640:01CA897E] Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Use the %pM kernel extension to display the MAC address. Signed-off-by: H Hartley Sweeten Cc: David S. Miller --- -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/vxge/vxge-main.c b/drivers/net/vxge/vxge-main.c index f1c4b2a..5f0e7ea 100644 --- a/drivers/net/vxge/vxge-main.c +++ b/drivers/net/vxge/vxge-main.c @@ -4297,10 +4297,8 @@ vxge_probe(struct pci_dev *pdev, const struct pci_device_id *pre) vxge_debug_init(VXGE_TRACE, "%s: Neterion %s Server Adapter", vdev->ndev->name, ll_config.device_hw_info.product_desc); - vxge_debug_init(VXGE_TRACE, - "%s: MAC ADDR: %02X:%02X:%02X:%02X:%02X:%02X", - vdev->ndev->name, macaddr[0], macaddr[1], macaddr[2], - macaddr[3], macaddr[4], macaddr[5]); + vxge_debug_init(VXGE_TRACE, "%s: MAC ADDR: %pM", + vdev->ndev->name, macaddr); vxge_debug_init(VXGE_TRACE, "%s: Link Width x%d", vdev->ndev->name, vxge_hw_device_link_width_get(hldev));