From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Torvalds Subject: Re: [RESEND PATCH 0/2] Make functions of dev_ macros, recursive vsnprintf Date: Sat, 6 Mar 2010 14:57:46 -0800 (PST) Message-ID: References: <20100304143837.af39845d.akpm@linux-foundation.org> <1267911399.849.39.camel@Joe-Laptop.home> <1267914654.849.81.camel@Joe-Laptop.home> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Andrew Morton , Nick Andrew , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , netdev@vger.kernel.org To: Joe Perches Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Sat, 6 Mar 2010, Linus Torvalds wrote: > > I'm not convinced. We pass that 'printf_spec' around a lot, including > nesting. Not as a pointer, either. Btw, I wonder if those fields could become bitfields, or 'unsigned char' etc. That printf_spec really is unnecessarily big. It should _easily_ fit in a single register on a 64-bit platform, possibly even a 32-bit one (we could limit field width and precision to 5 bits, for example) Linus