diff mbox

[U-Boot] MIPS: bootm.c: use debug macro to print debug message

Message ID 1357469660-23272-1-git-send-email-juhosg@openwrt.org
State Accepted
Delegated to: Daniel Schwierzeck
Headers show

Commit Message

Gabor Juhos Jan. 6, 2013, 10:54 a.m. UTC
The '## Transferring control ...' message is printed
only if DEBUG is enabled. Get rid of the 'ifdef DEBUG'
statement and use the debug macro instead.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
---
 arch/mips/lib/bootm.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Daniel Schwierzeck Jan. 6, 2013, 7:56 p.m. UTC | #1
2013/1/6 Gabor Juhos <juhosg@openwrt.org>:
> The '## Transferring control ...' message is printed
> only if DEBUG is enabled. Get rid of the 'ifdef DEBUG'
> statement and use the debug macro instead.
>
> Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
> ---
>  arch/mips/lib/bootm.c |    4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>

applied to u-boot-mips/next, thanks
diff mbox

Patch

diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c
index 608c1a7..4ac712a 100644
--- a/arch/mips/lib/bootm.c
+++ b/arch/mips/lib/bootm.c
@@ -59,10 +59,8 @@  int do_bootm_linux(int flag, int argc, char * const argv[],
 
 	bootstage_mark(BOOTSTAGE_ID_RUN_OS);
 
-#ifdef DEBUG
-	printf("## Transferring control to Linux (at address %08lx) ...\n",
+	debug("## Transferring control to Linux (at address %08lx) ...\n",
 		(ulong) theKernel);
-#endif
 
 	linux_params_init(UNCACHED_SDRAM(gd->bd->bi_boot_params), commandline);