RTEMS pty driver
Ralf Corsepius
corsepiu at faw.uni-ulm.de
Thu Jan 17 11:42:19 UTC 2002
Am Mit, 2002-01-16 um 04.16 schrieb Till Straumann:
> Fernando.
>
> I had a problem with my application because
> the stdout stream had its error flag (__SERR)
> set on entry to my Initialization task.
>
> I tracked it down and found that your pty
> driver (src/libnetworking/rtems_telnetd/pty.c)
> redefines
>
> ( $Id: pty.c,v 1.1 2001/08/09 22:06:51 joel Exp $ )
>
> #define printk printf
This doesn't look right, IHMO.
> However, pty_initialize() (which calls printk) ends
> up calling printf() at driver initialization time when it
> is not yet safe to use stdio (at least on some BSPs).
>
> Shouldn't the driver use the true printk() ?
If pty_initialize is called at driver initialization time, as you say,
then using printf there is not correct.
May-be Fernando should comment on this. What was the rationale to use
printf there?
Ralf
More information about the users
mailing list