From 802e01de219c4fa390cd1215cfafad0c91c9c703 Mon Sep 17 00:00:00 2001 From: kenneth Date: Sat, 9 Oct 2021 15:56:27 +0800 Subject: [PATCH] =?UTF-8?q?fixed=200c72c8b=20from=20https://gitee.com/rtos?= =?UTF-8?q?=5Fyuan/kernel=5Fliteos=5Fm/pulls/340=20fix:=20=E8=A7=A3?= =?UTF-8?q?=E5=86=B3los=5Fpm.c:743:19:=20warning=20=E7=BC=96=E8=AF=91?= =?UTF-8?q?=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 471c2747..b4ef3325 100644 --- a/components/power/los_pm.c +++ b/components/power/los_pm.c @@ -745,7 +745,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;