From 6bf5c0700af645c47f934ba7c45d3c57a491c19c Mon Sep 17 00:00:00 2001 From: chen_jie Date: Mon, 6 Feb 2023 15:16:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9l0=E6=97=A5=E5=BF=97=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chen_jie --- 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 2747a871e..c231f25f3 100644 --- a/services/log/init_log.c +++ b/services/log/init_log.c @@ -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);