Skip to content

Commit 366e28f

Browse files
authored
Merge pull request #2153 from zhaojuntao/fix-ulog
[components][ulog] fix ulog_console_backend_init auto init level
2 parents 99575c4 + 5ea985d commit 366e28f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/utilities/ulog/backend/console_be.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@ void ulog_console_backend_output(struct ulog_backend *backend, rt_uint32_t level
4545

4646
int ulog_console_backend_init(void)
4747
{
48+
ulog_init();
4849
console.output = ulog_console_backend_output;
4950

5051
ulog_backend_register(&console, "console", RT_TRUE);
5152

5253
return 0;
5354
}
54-
INIT_COMPONENT_EXPORT(ulog_console_backend_init);
55+
INIT_PREV_EXPORT(ulog_console_backend_init);
5556

5657
#endif /* ULOG_BACKEND_USING_CONSOLE */

0 commit comments

Comments
 (0)