!1744 FIX:修改L0日志格式问题

Merge pull request !1744 from cheng_jinsong/0206
This commit is contained in:
openharmony_ci 2023-02-06 08:43:08 +00:00 committed by Gitee
commit c808463e7b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -99,7 +99,7 @@ static void PrintLog(InitLogLevel logLevel, unsigned int domain, const char *tag
{
#ifdef OHOS_LITE
static const LogLevel LOG_LEVEL[] = { LOG_DEBUG, LOG_INFO, LOG_WARN, LOG_ERROR, LOG_FATAL };
(void)HiLogPrint(INIT_LOG_INIT, LOG_LEVEL[logLevel], domain, tag, "%{public}s", logInfo);
(void)HiLogPrint(INIT_LOG_INIT, LOG_LEVEL[logLevel], domain, tag, "%s", logInfo);
#endif
#ifdef INIT_DMESG
LogToDmesg(logLevel, tag, logInfo);