diff --git a/services/log/init_log.c b/services/log/init_log.c index fce73da68d0fdaae51b95955372dec718bdc0374..22dd0920d8852035c99d7388c30d4fcd6e835873 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};