[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RTEMS pty driver


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)

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