356f258e83
* use nuttx libc, disable system libc * use tlsf as default * update lhal flash driver * add example readme * add flash ini for new flash tool * add fw header for new flash tool
19 lines
618 B
C
19 lines
618 B
C
#define DBG_TAG "TEST"
|
|
|
|
#include "bflog.h"
|
|
|
|
BFLOG_DEFINE_TAG(TEST, DBG_TAG, true);
|
|
#undef BFLOG_TAG
|
|
#define BFLOG_TAG BFLOG_GET_TAG(TEST)
|
|
|
|
extern bflog_t example_recorder;
|
|
|
|
void test_log(void)
|
|
{
|
|
BFLOG_F(&example_recorder, "hello test this is fatal error\r\n");
|
|
BFLOG_E(&example_recorder, "hello test this is error\r\n");
|
|
BFLOG_W(&example_recorder, "hello test this is warning\r\n");
|
|
BFLOG_I(&example_recorder, "hello test this is information\r\n");
|
|
BFLOG_D(&example_recorder, "hello test this is degug information\r\n");
|
|
BFLOG_T(&example_recorder, "hello test this is trace information\r\n");
|
|
} |