From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: [PATCH] Gigabit Ethernet driver of Topcliff PCH Date: Thu, 26 Aug 2010 09:16:12 -0700 Message-ID: <1282839372.1875.78.camel@Joe-Laptop> References: <4C763A67.5040107@dsn.okisemi.com> <20100826090504.30ce58e5@nehalam> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Masayuki Ohtake , LKML , ML netdev , Greg Rose , Maxime Bizon , Kristoffer Glembo , Ralf Baechle , John Linn , Randy Dunlap , "David S. Miller" , MeeGo , "Wang, Qi" , "Wang, Yong Y" , Andrew , Intel OTC , "Foster, Margie" , Toshiharu Okada , Tomoya Morinaga , Takahiro Shimizu To: Stephen Hemminger Return-path: Received: from mail.perches.com ([173.55.12.10]:1383 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754026Ab0HZQQO (ORCPT ); Thu, 26 Aug 2010 12:16:14 -0400 In-Reply-To: <20100826090504.30ce58e5@nehalam> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 2010-08-26 at 09:05 -0700, Stephen Hemminger wrote: > + for (i = 0; i < 6; i++) > + printk(KERN_INFO "%2.2x%c", > + netdev->dev_addr[i], i == 5 ? '\n' : ':'); > > you just want: > printk(KERN_INFO "%pM", netdev->dev_addr); > > or better yet, convert to dev_printk or perhaps better still convert to netdev_info My message logging order preference: if there's a netif_msg_ and a struct net_device netif_ (struct private *, netif_msg_, struct net_device *, fmt, args...) if there's a struct net_device netdev_ (struct net_device *, fmt, args...) if there's a struct device dev_ (struct device *, fmt, args...) otherwise pr_ (fmt, args...)