MIPS: bootm.c: use debug macro to print debug message
authorGabor Juhos <juhosg@openwrt.org>
Sun, 6 Jan 2013 00:54:20 +0000 (00:54 +0000)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 16 Jan 2013 09:52:07 +0000 (10:52 +0100)
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

index 608c1a78db895fd2f9432788712126d2976be3cf..4ac712aa4b0f14019fa8e2ff1aa88a868c829c4c 100644 (file)
@@ -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);