Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754526Ab0HZQ3h (ORCPT ); Thu, 26 Aug 2010 12:29:37 -0400 Received: from mail.vyatta.com ([76.74.103.46]:53775 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754496Ab0HZQ3c (ORCPT ); Thu, 26 Aug 2010 12:29:32 -0400 Date: Thu, 26 Aug 2010 09:29:29 -0700 From: Stephen Hemminger To: Joe Perches 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 Subject: Re: [PATCH] Gigabit Ethernet driver of Topcliff PCH Message-ID: <20100826092929.72b61549@nehalam> In-Reply-To: <1282839372.1875.78.camel@Joe-Laptop> References: <4C763A67.5040107@dsn.okisemi.com> <20100826090504.30ce58e5@nehalam> <1282839372.1875.78.camel@Joe-Laptop> Organization: Vyatta X-Mailer: Claws Mail 3.7.5 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1203 Lines: 38 On Thu, 26 Aug 2010 09:16:12 -0700 Joe Perches wrote: > 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...) > > At this point in process, netdevice isn't registered so it doesn't have a ethX name. so dev_info would be best. -- -- 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/