@@ -140,16 +140,13 @@ extern "C" {
140140
141141/* DEBUG macros */
142142
143- extern void spi_debug (const char * msg , ...);
144-
145143#if (USBH_DEBUG_LEVEL > 0U )
146144#define USBH_UsrLog (...) do { \
147145 printf(__VA_ARGS__); \
148146 printf("\n"); \
149147} while (0)
150148#else
151- #define USBH_UsrLog (MSG , ...) spi_debug(MSG __VA_OPT__(,) __VA_ARGS__);
152- //do {} while (0)
149+ #define USBH_UsrLog (MSG , ...) do {} while (0)
153150#endif
154151
155152#if (USBH_DEBUG_LEVEL > 1U )
@@ -160,8 +157,7 @@ extern void spi_debug(const char *msg, ...);
160157 printf("\n"); \
161158} while (0)
162159#else
163- #define USBH_ErrLog (MSG , ...) spi_debug(MSG __VA_OPT__(,) __VA_ARGS__);
164- //do {} while (0)
160+ #define USBH_ErrLog (MSG , ...) do {} while (0)
165161#endif
166162
167163#if (USBH_DEBUG_LEVEL > 2U )
@@ -171,8 +167,7 @@ extern void spi_debug(const char *msg, ...);
171167 printf("\n"); \
172168} while (0)
173169#else
174- #define USBH_DbgLog (MSG , ...) spi_debug(MSG __VA_OPT__(,) __VA_ARGS__);
175- //do {} while (0)
170+ #define USBH_DbgLog (MSG , ...) do {} while (0)
176171#endif
177172
178173/**