]> git.sur5r.net Git - u-boot/commitdiff
Fix Ymodem build when DEBUG and CONFIG_USE_TINY_PRINTF are selected
authorAlex Kiernan <alex.kiernan@gmail.com>
Thu, 3 May 2018 11:45:08 +0000 (11:45 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 11 May 2018 00:38:33 +0000 (20:38 -0400)
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>
common/xyzModem.c

index a126e32ed35e61b50a350074cc6ffe1f3276000e..519e414a6c10f4073e9d7421750e95d92b304d08 100644 (file)
@@ -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
  */