diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2018-05-03 14:45:08 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-05-11 03:38:33 +0300 |
commit | 8140816eea9faef804a333e8416249fc57d0bedc (patch) | |
tree | 85c9a537a49a5b3facde30366e88664aa36cd8be | |
parent | 53deb24dda33686f8477b4ff3644cc40f3160245 (diff) | |
download | u-boot-8140816eea9faef804a333e8416249fc57d0bedc.tar.xz |
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 <alex.kiernan@gmail.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
-rw-r--r-- | common/xyzModem.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |