提交 5e076633 编写于 作者: O openharmony_ci 提交者: Gitee

!598 优化trace device初始化,不在system_init.c中调用,改为LOS_MODULE_INIT

Merge pull request !598 from LiteOS/master
......@@ -36,6 +36,7 @@
#include "los_dev_trace.h"
#include "los_trace.h"
#include "los_hook.h"
#include "los_init.h"
#define TRACE_DRIVER "/dev/trace"
#define TRACE_DRIVER_MODE 0666
......@@ -155,3 +156,5 @@ int DevTraceRegister(void)
{
return register_driver(TRACE_DRIVER, &g_traceDevOps, TRACE_DRIVER_MODE, 0); /* 0666: file mode */
}
LOS_MODULE_INIT(DevTraceRegister, LOS_INIT_LEVEL_KMOD_EXTENDED);
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册