提交 106e6b77 编写于 作者: armink_ztl's avatar armink_ztl

[component][ulog] Fix a input parameter check error.

上级 f28b9d83
...@@ -760,7 +760,7 @@ int ulog_tag_lvl_filter_set(const char *tag, rt_uint32_t level) ...@@ -760,7 +760,7 @@ int ulog_tag_lvl_filter_set(const char *tag, rt_uint32_t level)
ulog_tag_lvl_filter_t tag_lvl = NULL; ulog_tag_lvl_filter_t tag_lvl = NULL;
int result = RT_EOK; int result = RT_EOK;
if (level >= LOG_FILTER_LVL_ALL) if (level > LOG_FILTER_LVL_ALL)
return -RT_EINVAL; return -RT_EINVAL;
if (!ulog.init_ok) if (!ulog.init_ok)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册