]> git.sur5r.net Git - u-boot/commitdiff
x86: Wrap print_ch() with config option
authorBin Meng <bmeng.cn@gmail.com>
Wed, 18 Jan 2017 11:32:52 +0000 (03:32 -0800)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 7 Feb 2017 05:23:07 +0000 (13:23 +0800)
print_ch() should not be used if DEBUG_UART is off.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/x86_64/cpu.c

index 77cbb567c457e5112711bb2937869933f78fb153..db171f750df60bc0875b64e78d1981defae43458 100644 (file)
@@ -31,7 +31,9 @@ void arch_setup_gd(gd_t *new_gd)
         *
         * U-Boot SPL 2017.01
         */
+#ifdef CONFIG_DEBUG_UART
        printch(' ');
+#endif
 }
 
 int cpu_has_64bit(void)