[SFUD] Update the log format to rtdbg.
This commit is contained in:
parent
179d0ee439
commit
930de79000
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue