mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-27 01:28:23 +00:00
[SFUD] Update the log format to rtdbg.
This commit is contained in:
@@ -38,6 +38,18 @@
|
||||
#define SFUD_DEBUG_MODE
|
||||
#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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user