Received: with ECARTIS (v1.0.0; list netdev); Sat, 26 Feb 2005 13:21:21 -0800 (PST) Received: from parcelfarce.linux.theplanet.co.uk (IDENT:93@parcelfarce.linux.theplanet.co.uk [195.92.249.252]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id j1QLLDU4020728 for ; Sat, 26 Feb 2005 13:21:14 -0800 Received: from [69.134.152.124] (helo=[10.10.10.88]) by parcelfarce.linux.theplanet.co.uk with asmtp (TLSv1:AES256-SHA:256) (Exim 4.33) id 1D59N4-0003nY-H8; Sat, 26 Feb 2005 21:21:06 +0000 Message-ID: <4220E82B.6080309@pobox.com> Date: Sat, 26 Feb 2005 16:20:43 -0500 From: Jeff Garzik User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Francois Romieu CC: Richard Dawe , netdev@oss.sgi.com Subject: Re: [PATCH]: r8169: Message level support References: <4220ADA6.2040506@phekda.gotadsl.co.uk> <20050226203518.GA14688@electric-eye.fr.zoreil.com> In-Reply-To: <20050226203518.GA14688@electric-eye.fr.zoreil.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.83/728/Sat Feb 26 02:22:53 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 2080 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: jgarzik@pobox.com Precedence: bulk X-list: netdev Content-Length: 738 Lines: 26 Francois Romieu wrote: > Jeff, can you send a ack/nack if you disagree with the remarks below ? > > Richard Dawe : > [...] > >>There seems to be a mixture of drivers using a bitfield and a level. >>Which is the currently preferred mechanism? > > > They do not offer exactly the same range. I prefer to keep both as the > module option is not that expensive. * The preferred mechanism is to have an integer verbosity level 'debug', which is converted using netif_msg_init() into a bitmap. * PFX should only be used in probe paths. In all other cases, dev->name should be used. * I strongly agree with the comment "Imho the driver should not poke its nose into the guts of netif_msg_xxx()" Jeff