[PATCH 6/7] startup: use regular debug statements in initcall debugging

Sascha Hauer s.hauer at pengutronix.de
Thu Jan 26 08:26:52 EST 2012


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 <s.hauer at pengutronix.de>
---
 common/startup.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/common/startup.c b/common/startup.c
index d39748b..abd1b77 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();
 
-- 
1.7.8.3




More information about the barebox mailing list