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)
commit8140816eea9faef804a333e8416249fc57d0bedc
tree85c9a537a49a5b3facde30366e88664aa36cd8be
parent53deb24dda33686f8477b4ff3644cc40f3160245
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>
common/xyzModem.c