Re: [patch] teach netconsole how to do syslog

From: Keith Owens
Date: Fri Jun 25 2004 - 21:29:15 EST


On Fri, 25 Jun 2004 14:11:01 -0500,
Matt Mackall <mpm@xxxxxxxxxxx> wrote:
>Yep, we get one UDP packet per printk currently, which works for most
>things, but not everything. This could be changed to a buffered
>approach, but that breaks one of my favorite debugging techniques -
>adding an alphabet soup of single-character printks to trace tricky
>call paths.
>
>So we could add a __printk that doesn't flush to outputs for stuff
>like the above, or just live with it.

Other way round. Keep printk as is and use a buffered approach for
printk over netconsole. netconsole gets complete lines which is what
you want 99.9% of the time. Add __printk or printk_unbuffered for the
.1% of debugging output that really wants unbuffered output.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/