Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753382AbZL3Tlm (ORCPT ); Wed, 30 Dec 2009 14:41:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753360AbZL3Tll (ORCPT ); Wed, 30 Dec 2009 14:41:41 -0500 Received: from exprod6og115.obsmtp.com ([64.18.1.35]:41755 "HELO exprod6og115.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752948AbZL3Tll convert rfc822-to-8bit (ORCPT ); Wed, 30 Dec 2009 14:41:41 -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/atm/idt77252.c: use %pM to show MAC address Date: Wed, 30 Dec 2009 14:41:41 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] drivers/atm/idt77252.c: use %pM to show MAC address Thread-Index: AcqJiBwVAa+UlfnhQM+GHIAxf5cgMQ== From: "H Hartley Sweeten" To: , Cc: "David Miller" X-OriginalArrivalTime: 30 Dec 2009 19:41:39.0625 (UTC) FILETIME=[1B12B990:01CA8988] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 996 Lines: 28 Use the %pM kernel extension to display the MAC address. Signed-off-by: H Hartley Sweeten Cc: David S. Miller --- diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c index e33ae00..01f36c0 100644 --- a/drivers/atm/idt77252.c +++ b/drivers/atm/idt77252.c @@ -3557,10 +3557,7 @@ init_card(struct atm_dev *dev) if (tmp) { memcpy(card->atmdev->esi, tmp->dev_addr, 6); - printk("%s: ESI %02x:%02x:%02x:%02x:%02x:%02x\n", - card->name, card->atmdev->esi[0], card->atmdev->esi[1], - card->atmdev->esi[2], card->atmdev->esi[3], - card->atmdev->esi[4], card->atmdev->esi[5]); + printk("%s: ESI %pM\n", card->name, card->atmdev->esi); } /* * XXX: -- 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/