[SFUD] Update the log format to rtdbg.

This commit is contained in:
armink 2020-06-13 11:36:12 +08:00
parent 179d0ee439
commit 930de79000
1 changed files with 12 additions and 0 deletions

View File

@ -38,6 +38,18 @@
#define SFUD_DEBUG_MODE #define SFUD_DEBUG_MODE
#endif #endif
#ifdef RT_DEBUG_SFUD
#define DBG_LVL DBG_LOG
#define SFUD_DEBUG(fmt, ...) LOG_D("(%s:%ld) "fmt"", __FILE__, __LINE__, ##__VA_ARGS__)
#else
#define DBG_LVL DBG_INFO
#endif /* RT_DEBUG_SFUD */
#define DBG_TAG "SFUD"
#include <rtdbg.h>
extern void rt_kprintf(const char *fmt, ...);
#define SFUD_INFO(...) LOG_I(__VA_ARGS__)
/** /**
* Using probe flash JEDEC SFDP parameter. * Using probe flash JEDEC SFDP parameter.
*/ */