You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/12/27 12:56:47 UTC

[incubator-nuttx] branch master updated: regulator: fix warning in RPIu32

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new c5aca37  regulator: fix warning in RPIu32
c5aca37 is described below

commit c5aca37f8ffeaaffa923abb17edf33e9787515db
Author: zhuyanlin <zh...@xiaomi.com>
AuthorDate: Mon Dec 27 11:18:35 2021 +0800

    regulator: fix warning in RPIu32
    
    Signed-off-by: zhuyanlin <zh...@xiaomi.com>
---
 drivers/power/regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/regulator.c b/drivers/power/regulator.c
index e097d73..8ccaa59 100644
--- a/drivers/power/regulator.c
+++ b/drivers/power/regulator.c
@@ -821,7 +821,7 @@ void regulator_unregister(FAR struct regulator_dev_s *rdev)
   nxsem_wait_uninterruptible(&g_reg_sem);
   if (rdev->open_count)
     {
-      pwrerr("unregister, open %PRIu32\n", rdev->open_count);
+      pwrerr("unregister, open %" PRIu32 "\n", rdev->open_count);
       nxsem_post(&g_reg_sem);
       return;
     }