From 1bf200bd7b1e9545a304ee664f369840ac14110a Mon Sep 17 00:00:00 2001 From: chengjinsong Date: Tue, 27 Sep 2022 10:23:53 +0800 Subject: [PATCH] fixed 3d5a86b from https://gitee.com/chneg-jinsong/startup_init_lite/pulls/1308 newcodex Signed-off-by: chengjinsong --- services/log/init_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/log/init_log.c b/services/log/init_log.c index fce73da6..22dd0920 100644 --- a/services/log/init_log.c +++ b/services/log/init_log.c @@ -120,7 +120,7 @@ static void PrintLog(InitLogLevel logLevel, unsigned int domain, const char *tag INIT_LOCAL_API void InitLog(int logLevel, unsigned int domain, const char *tag, const char *fmt, va_list vargs) { - if (g_logLevel > logLevel) { + if ((int)g_logLevel > logLevel) { return; } char tmpFmt[DEF_LOG_SIZE] = {0}; -- GitLab