From 3d5a86b674d76ac93ce2acb120760cbc6448eaa6 Mon Sep 17 00:00:00 2001 From: chengjinsong Date: Tue, 27 Sep 2022 10:23:53 +0800 Subject: [PATCH] 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