Re: [PATCH] console: prevent registered consoles from dumping oldkernel message over again

From: Alan Cox
Date: Wed Jan 12 2011 - 06:39:01 EST


On Wed, 12 Jan 2011 14:48:46 +0800
Feng Tang <feng.tang@xxxxxxxxx> wrote:

> For a platform with many consoles like:
> "console=tty1 console=ttyMFD2 console=ttyS0 earlyprintk=mrst"
>
> Each time when the non "selected_console" (tty1 and ttyMFD2 here) get
> registered, the existing kernel message will be printed out on
> registered consoles again, the "mrst" early console will get some
> same message for 3 times, and "tty1" will get some for twice.
>
> So try to temporarily disable registered console's printing when dump
> the existing kernel messages to the new console.

I don't think the existing behaviour should be changed because other
systems and users rely on it. Perhaps we need to be able to do

console=xxx addconsole=yyy

or some such instead so the user can indicate if the console should get
all the messages so far or just be added as an extra console
--
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/