diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-01-26 12:22:23 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-01-26 14:12:04 +0100 |
commit | 641dfaa3a8a7c0b5cb2ba9fa8943ea2ff680e70f (patch) | |
tree | 6a687486c1f209a4b3caf06d890ca94113a5286a /common | |
parent | 6d2ac13be0d79dd8a331388917ae7b54201af68c (diff) | |
download | barebox-641dfaa3a8a7c0b5cb2ba9fa8943ea2ff680e70f.tar.gz barebox-641dfaa3a8a7c0b5cb2ba9fa8943ea2ff680e70f.tar.xz |
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/startup.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/common/startup.c b/common/startup.c index d39748bec0..abd1b774bd 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(); |