Re: The end of embedded Linux?

From: Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Date: Mon Oct 07 2002 - 17:56:21 EST


Em Mon, Oct 07, 2002 at 11:52:18PM +0100, Alan Cox escreveu:
> On Mon, 2002-10-07 at 23:22, Christer Weinigel wrote:
> > #define printk_debug(xxx...) printk(KERN_DEBUG, xxx...)
> > #define printk_info(xxx...) printk(KERN_INFO, xx...)
> > #else
> > #define printk_debug(xxx...) do { } while (0)
> > #define printk_info(xxx...) do { } while (0)
>
> That might make a lot of sense. The macros in question would need a bit
> of hand checking for side effects in calls but yes this is the kind of
> thing that can be good

Humm, dprintk is perhaps the most widely used of this kind of stuff,
i.e. debug only printks that should be disabled when in production,
standardising on what is common practice and adding a iprintk could be
something we should consider.

- 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/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:01:01 EST