Re: serial console (was Re: [patch] printk from userspace)

Miquel van Smoorenburg
2002-08-15T12:39:46Z

In article <87eld1s9l7.fsf_-_@arm.t19.ds.pwr.wroc.pl>,
Arkadiusz Miskiewicz <misiek@pld.ORG.PL> wrote:
>btw. is there any reason to not display initscripts messages
>on all consoles in such setup:
>append="console=tty0 console=ttyS0,57600n8"
>serial=0,57600n8
>?

Yes. It is not implemented in the kernel and it would not
be trivial to do so (or even wanted)

>kernel messages are available on both - tty0 and ttyS0 while
>userspace messages (from initscripts) only on last specified
>- in such case ttyS0.

That's because printk() in the kernel uses a very different codepath than
the userland write(console, "hello")

Mike.