RTEMS pty driver

Till Straumann strauman at SLAC.Stanford.EDU
Wed Jan 16 03:16:33 UTC 2002


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

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() ?

Regards,

--Till.





More information about the users mailing list