Merge pull request #2153 from zhaojuntao/fix-ulog

[components][ulog] fix ulog_console_backend_init auto init level
This commit is contained in:
Bernard Xiong 2019-01-04 21:22:20 +08:00 committed by GitHub
commit 366e28f476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -45,12 +45,13 @@ void ulog_console_backend_output(struct ulog_backend *backend, rt_uint32_t level
int ulog_console_backend_init(void) int ulog_console_backend_init(void)
{ {
ulog_init();
console.output = ulog_console_backend_output; console.output = ulog_console_backend_output;
ulog_backend_register(&console, "console", RT_TRUE); ulog_backend_register(&console, "console", RT_TRUE);
return 0; return 0;
} }
INIT_COMPONENT_EXPORT(ulog_console_backend_init); INIT_PREV_EXPORT(ulog_console_backend_init);
#endif /* ULOG_BACKEND_USING_CONSOLE */ #endif /* ULOG_BACKEND_USING_CONSOLE */