Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932771Ab0BRCks (ORCPT ); Wed, 17 Feb 2010 21:40:48 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:36493 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755106Ab0BRCkp (ORCPT ); Wed, 17 Feb 2010 21:40:45 -0500 Date: Wed, 17 Feb 2010 18:41:00 -0800 (PST) Message-Id: <20100217.184100.232538560.davem@davemloft.net> To: dave@thedillows.org Cc: joe@perches.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 14/15] drivers/net/typhoon.c: Use (pr|netdev)_ macro helpers From: David Miller In-Reply-To: <1266460221.5719.60.camel@obelisk.thedillows.org> References: <1266458370.5719.43.camel@obelisk.thedillows.org> <1266459504.8446.201.camel@Joe-Laptop.home> <1266460221.5719.60.camel@obelisk.thedillows.org> X-Mailer: Mew version 6.3 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) 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: 907 Lines: 20 From: David Dillow Date: Wed, 17 Feb 2010 21:30:21 -0500 > No, because the routines that use tp->name are called both before and > after the netdev is registered. Prior to that time, it contains the PCI > slot name -- "00:01.0" etc -- so that the user can determine which card > is acting up. Once the card is registered, it has "ethX" to use a > commonly expected name for the card. In my opinion that's awful. Pick one or the other format. For things that happen both before and after netdev registry we really should provide one style of device identification and those provided by dev_*() are probably the best in these situations. -- 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/