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>
This commit is contained in:
Bin Meng 2017-01-18 03:32:52 -08:00
parent 45ffa122f2
commit 020a5d4f63
1 changed files with 2 additions and 0 deletions

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