Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 7 Oct 2002 20:01:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 7 Oct 2002 20:01:41 -0400 Received: from perninha.conectiva.com.br ([200.250.58.156]:9164 "EHLO perninha.conectiva.com.br") by vger.kernel.org with ESMTP id ; Mon, 7 Oct 2002 20:01:40 -0400 Date: Mon, 7 Oct 2002 21:06:33 -0300 From: Arnaldo Carvalho de Melo To: Alan Cox , Matt Porter , "David S. Miller" , giduru@yahoo.com, Andre Hedrick , Linux Kernel Mailing List Subject: Re: The end of embedded Linux? Message-ID: <20021008000632.GO3485@conectiva.com.br> Mail-Followup-To: Arnaldo Carvalho de Melo , Alan Cox , Matt Porter , "David S. Miller" , giduru@yahoo.com, Andre Hedrick , Linux Kernel Mailing List References: <20021005205238.47023.qmail@web13201.mail.yahoo.com> <20021005.212832.102579077.davem@redhat.com> <20021007092212.B18610@home.com> <20021007230109.GI3485@conectiva.com.br> <1034033007.26504.44.camel@irongate.swansea.linux.org.uk> <20021007234733.GN3485@conectiva.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021007234733.GN3485@conectiva.com.br> User-Agent: Mutt/1.4i X-Url: http://advogato.org/person/acme Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1776 Lines: 53 Em Mon, Oct 07, 2002 at 08:47:33PM -0300, Arnaldo C. Melo escreveu: > Em Tue, Oct 08, 2002 at 12:23:27AM +0100, Alan Cox escreveu: > > On Tue, 2002-10-08 at 00:01, Arnaldo Carvalho de Melo wrote: > > to tweak > > > > the values exactly how we want in a specific application. The tweaking > > > > options can be buried under advanced kernel options with the appropriate > > > > disclaimers about shooting yourself in the foot. > > > That is how I think it should be done, yes. > > Submitting dprintk() seems like a great starting point. I've also got > > some patches in the archive someone sent that allows you to configure > > out the #! exec stuff > Ok, will do that in the next days. Ok, so what do you think of a include/linux/debug.h and a CONFIG_DEBUG_MESSAGES and in debug.h: #ifdef CONFIG_DEBUG_MESSAGES #define dprintk printk(KERN_DEBUG.....) /* find the best of the 1001 variants already in the tree */ #else #define dprintk(.....) #endif and in drivers currently using dprintk (and in others that want to start using it instead of homebrew equivalent macros): #include ...happily use dprintk... and the default kernel config would just disable (or other sane default agreed here) so, assuming it is disabled it'd be easy to enable it on a per source code file, doing this: #include #define CONFIG_DEBUG_MESSAGES #include Would this be acceptable? Ah, all of the above is quickly hacked pseudocode 8) - Arnaldo - 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/