diff options
| author | armink <[email protected]> | 2018-11-10 09:49:21 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2018-11-10 09:49:21 +0800 |
| commit | 106e6b77b256107b05d047cdd9c1aa10a41452b3 (patch) | |
| tree | ab5278ffb397739d663f129b04165c77dc713c84 | |
| parent | f28b9d83f7a0a3561ec3a871e46f3da4b0b48fc0 (diff) | |
[component][ulog] Fix a input parameter check error.
| -rw-r--r-- | components/utilities/ulog/ulog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/utilities/ulog/ulog.c b/components/utilities/ulog/ulog.c index 2ed8527713..186154c7c9 100644 --- a/components/utilities/ulog/ulog.c +++ b/components/utilities/ulog/ulog.c @@ -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; int result = RT_EOK; - if (level >= LOG_FILTER_LVL_ALL) + if (level > LOG_FILTER_LVL_ALL) return -RT_EINVAL; if (!ulog.init_ok) |
