From 641dfaa3a8a7c0b5cb2ba9fa8943ea2ff680e70f Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 26 Jan 2012 12:22:23 +0100 Subject: [PATCH] startup: use regular debug statements in initcall debugging Now that we don't need malloc for the console anymore it's safe to call printf anytime, so switch the initcall debugging to regular debug() statements.. Signed-off-by: Sascha Hauer --- common/startup.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/startup.c b/common/startup.c index d39748bec..abd1b774b 100644 --- a/common/startup.c +++ b/common/startup.c @@ -121,13 +121,12 @@ void start_barebox (void) for (initcall = __barebox_initcalls_start; initcall < __barebox_initcalls_end; initcall++) { - PUTS_LL("<<"); - PUTHEX_LL(*initcall); + debug("initcall-> %pS\n", *initcall); result = (*initcall)(); - PUTS_LL(">>\n"); + debug("initcall<- %pS (%d)\n", *initcall, result); } - PUTS_LL("initcalls done\n"); + debug("initcalls done\n"); display_meminfo();