mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-06 22:14:34 +08:00
Merge pull request #1961 from armink/fix_ulog
[component][ulog] Fix a input parameter check error.
This commit is contained in:
commit
d8ca5e0185
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user