From: Bin Meng <bmeng.cn@gmail.com>
Date: Wed, 18 Jan 2017 11:32:52 +0000 (-0800)
Subject: x86: Wrap print_ch() with config option
X-Git-Tag: v2025.01-rc5-pxa1908~7524
X-Git-Url: http://git.dujemihanovic.xyz/html/static/%7B%7B%20.RelPermalink%20%7D%7D?a=commitdiff_plain;h=020a5d4f633e760995b6104cac1f68132469e4b0;p=u-boot.git

x86: Wrap print_ch() with config option

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>
---

diff --git a/arch/x86/cpu/x86_64/cpu.c b/arch/x86/cpu/x86_64/cpu.c
index 77cbb567c4..db171f750d 100644
--- a/arch/x86/cpu/x86_64/cpu.c
+++ b/arch/x86/cpu/x86_64/cpu.c
@@ -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)