This patchset adds simple console support for the PBL. Up to now only simple functions like putc_ll, puthex_ll or puts_ll could be used to print messages in the PBL. This series merely moves everything away from lib/vsprintf.c which is not needed for the PBL, enables lib/vsprintf.c and implements printf function in the PBL which uses puts_ll as backend. Due to the use of puts_ll the PBL console is still mainly for debugging. Also some debug messages are added to the early ARM startup functions to make it a bit easier to follow what's going on there. Sascha ---------------------------------------------------------------- Sascha Hauer (9): PBL: Add strnlen, needed for printf support printf: move panic() to common/misc.c printf: move simple_strto*() functions to separate file printf: use local isdigit/isalnum implementation Add PBL console support malloc: Add a function to detect if malloc pool is already initialized console: Make sure xzalloc is only used when it's available ARM: start.c: Add some debugging messages ARM: uncompress.c: Add some debugging messages arch/arm/cpu/start.c | 11 +++++ arch/arm/cpu/uncompress.c | 9 ++++ common/Kconfig | 11 +++++ common/console_common.c | 2 +- common/memory.c | 8 ++++ common/misc.c | 22 ++++++++++ include/malloc.h | 2 + include/printk.h | 15 ++++--- include/stdio.h | 20 +++++---- lib/Makefile | 3 ++ lib/strtox.c | 68 +++++++++++++++++++++++++++++ lib/vsprintf.c | 107 ++++++++-------------------------------------- pbl/Makefile | 1 + pbl/console.c | 32 ++++++++++++++ pbl/string.c | 14 ++++++ 15 files changed, 220 insertions(+), 105 deletions(-) create mode 100644 lib/strtox.c create mode 100644 pbl/console.c _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox