Blackfin & printf()/fprintf()

Sebastian Dressler sebastian.dressler@fhtw-berlin.de
Wed Mar 26 21:52:00 GMT 2008



Sebastian Dressler wrote:
> 
> Ok, it seems now, that the sbrk call is broken, i've tested that with
> malloc ... it fails. So i'll hang in there and fix it first. Maybe it
> works then...
> 

Well...i've fixed sbrk and malloc behaves correct now, but nothing changed
in the behavior of printf. I've debugged it, and found out, that something
goes wrong, when vfprintf checks the fp. I assume that stdin/out/err is not
initialized.

After making some google-research i found out, that maybe _sinit() should be
called or the the _REENT structure should be initialized. Since i don't use
reentrancy, i'm a bit confused now...

Sebastian
-- 
View this message in context: http://www.nabble.com/Blackfin---printf%28%29-fprintf%28%29-tp16275318p16301394.html
Sent from the Sourceware - newlib list mailing list archive at Nabble.com.



More information about the Newlib mailing list