From: Alex Kiernan Date: Thu, 3 May 2018 11:45:08 +0000 (+0000) Subject: Fix Ymodem build when DEBUG and CONFIG_USE_TINY_PRINTF are selected X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=8140816eea9faef804a333e8416249fc57d0bedc;p=u-boot.git Fix Ymodem build when DEBUG and CONFIG_USE_TINY_PRINTF are selected Attempting to build with both DEBUG and CONFIG_USE_TINY_PRINTF along with CONFIG_SPL_YMODEM_SUPPORT fails at link time: common/built-in.o: In function `zm_dprintf': common/xyzModem.c:190: undefined reference to `vsprintf' Disable Ymodem debug if we don't have full vsprintf support. Signed-off-by: Alex Kiernan Reviewed-by: Joe Hershberger --- diff --git a/common/xyzModem.c b/common/xyzModem.c index a126e32ed3..519e414a6c 100644 --- a/common/xyzModem.c +++ b/common/xyzModem.c @@ -171,7 +171,7 @@ parse_num (char *s, unsigned long *val, char **es, char *delim) } -#ifdef DEBUG +#if defined(DEBUG) && !defined(CONFIG_USE_TINY_PRINTF) /* * Note: this debug setup works by storing the strings in a fixed buffer */