printf not calling _write

Jeff Johnston jjohnstn@redhat.com
Thu Jul 17 13:31:00 GMT 2008


Rob Emanuele wrote:
> Hi All,
>
> I've written my own functions for _write, _read, and the other
> _functions.  I can call "write(1,"hello",5);" and it will get to my
> _write function.  Shouldn't newlib's printf also get there?  Or am I
> missing something with setting up stdout correctly?
>
> Thanks,
>
> Rob
>   
Rob,

printf should be getting there too.  Did you remember to add a newline 
so printf will flush the internal buffer for stdout?

-- Jeff J.



More information about the Newlib mailing list