diff --git a/components/utilities/ulog/ulog.c b/components/utilities/ulog/ulog.c index 2ed8527713116849f010c06b6910589150d7cb1b..186154c7c9d00e0ec9d7f66c9ad91b3a50963818 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)