Allows different implementations of FILE handling to be provided.
Make lib/debug provide the default implementation for
stdin/stdout/stderr.
Change-Id: Icd9d30ac44884648603e91cfca856912bca1c0d3
Signed-off-by: Dima Zavin <dima@android.com>
Move implementation to stdio.c to sit next to the other
stdio definitions that use the debug output functions. Keep
the declaration of it, though, in printf.h to sit next to
sprintf, etc.
Don't include printf.h directly in other places, rely on stdio.h
to properly pull in these functions.
Change-Id: I357cb04a5c78185b8fde908193b672326c2ee542
Signed-off-by: Dima Zavin <dima@android.com>