From 0c72c8bf94b053ff90bbf2019006c52adf1eb8df Mon Sep 17 00:00:00 2001 From: kenneth Date: Sat, 9 Oct 2021 15:56:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3los=5Fpm.c:743:19:=20w?= =?UTF-8?q?arning=20=E7=BC=96=E8=AF=91=E5=91=8A=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复PRINT_ERR函数格式化参数数目不一致。 close #I4D4L8 Signed-off-by: kenneth --- components/power/los_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/power/los_pm.c b/components/power/los_pm.c index a8bef3ea..e38dd336 100644 --- a/components/power/los_pm.c +++ b/components/power/los_pm.c @@ -740,7 +740,7 @@ UINT32 LOS_PmReadLock(VOID) { UINT32 ret = LOS_EventRead(&g_pmEvent, PM_EVENT_LOCK_MASK, LOS_WAITMODE_OR | LOS_WAITMODE_CLR, LOS_WAIT_FOREVER); if (ret > PM_EVENT_LOCK_MASK) { - PRINT_ERR("%s event read failed! ERROR: 0x%x\n", ret); + PRINT_ERR("%s event read failed! ERROR: 0x%x\n", __FUNCTION__, ret); } return LOS_OK;