]> git.sur5r.net Git - u-boot/blobdiff - common/xyzModem.c
Fix Ymodem build when DEBUG and CONFIG_USE_TINY_PRINTF are selected
[u-boot] / common / xyzModem.c
index a0c5dfeece505ad07f9973ee7706fb2451ee02b4..519e414a6c10f4073e9d7421750e95d92b304d08 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: eCos-2.0
 /*
  *==========================================================================
  *
@@ -6,8 +7,6 @@
  *      RedBoot stream handler for xyzModem protocol
  *
  *==========================================================================
- * SPDX-License-Identifier:    eCos-2.0
- *==========================================================================
  *#####DESCRIPTIONBEGIN####
  *
  * Author(s):    gthomas
@@ -172,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
  */