aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAlex Kiernan2018-05-03 11:45:08 +0000
committerTom Rini2018-05-10 20:38:33 -0400
commit8140816eea9faef804a333e8416249fc57d0bedc (patch)
tree85c9a537a49a5b3facde30366e88664aa36cd8be /common
parent53deb24dda33686f8477b4ff3644cc40f3160245 (diff)
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>
Diffstat (limited to 'common')
-rw-r--r--common/xyzModem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/xyzModem.c b/common/xyzModem.c
index a126e32ed35..519e414a6c1 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
*/