From: Bin Meng Date: Wed, 18 Jan 2017 03:32:52 -0800 Subject: [U-Boot] [PATCH 02/14] x86: Wrap print_ch() with config option In-Reply-To: <1484739184-24211-1-git-send-email-bmeng.cn@gmail.com> References: <1484739184-24211-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1484739184-24211-3-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de print_ch() should not be used if DEBUG_UART is off. Signed-off-by: Bin Meng --- arch/x86/cpu/x86_64/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/cpu/x86_64/cpu.c b/arch/x86/cpu/x86_64/cpu.c index 77cbb56..82ea456 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 */ +#if CONFIG_IS_ENABLED(DEBUG_UART) printch(' '); +#endif } int cpu_has_64bit(void) -- 2.9.2