Browse Source

Merge pull request #1961 from armink/fix_ulog

[component][ulog] Fix a input parameter check error.
Bernard Xiong 6 years ago
parent
commit
d8ca5e0185
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/utilities/ulog/ulog.c

+ 1 - 1
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)