This adds a function to print into a malloced string Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
We use FIFOs on some devices, so flush them before exiting so we do not get funny characters in the output. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
fixed include/stdio.h:23:2: warning: returning void-valued expression Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
- make printf return int
add file functions
move some functions away from common.h
split up header files, make src pointer in write functions const