[En-Nut-Discussion] stdout question

Joe Doubek jdoubek at control4.com
Wed Jul 28 17:46:57 CEST 2004


Hello all, I'm trying to setup a device that can use stdout for debug on
a telnet session. I want to leave all my printf, etc. statements the
same as when I debug over a uart, but want to conditionally leave the
uart free (based upon a #define) to later be used by my application.
Right now if I don't assign stdout to anything on start up it appears my
printf statements cause my app to crash spectacularly. Is there a way to
initially assign stdout to a "dummy" device that goes nowhere until
someone connects and my telnet server has a valid stream to reassign it
to? -joe




More information about the En-Nut-Discussion mailing list