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/07/24 11:22:17 UTC

[incubator-nuttx] branch master updated: arch/arm/src/stm32/stm32_qencoder.c: print uint32_t by using standard format PRIx32

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 4985f47  arch/arm/src/stm32/stm32_qencoder.c: print uint32_t by using standard format PRIx32
4985f47 is described below

commit 4985f471552cfc09058aa1196806e7fc70fcbee9
Author: Michal Lenc <mi...@seznam.cz>
AuthorDate: Sat Jul 24 10:16:51 2021 +0200

    arch/arm/src/stm32/stm32_qencoder.c: print uint32_t by using standard format PRIx32
    
    Signed-off-by: Michal Lenc <mi...@seznam.cz>
---
 arch/arm/src/stm32/stm32_qencoder.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/src/stm32/stm32_qencoder.c b/arch/arm/src/stm32/stm32_qencoder.c
index 6cc783e..e3f99fc 100644
--- a/arch/arm/src/stm32/stm32_qencoder.c
+++ b/arch/arm/src/stm32/stm32_qencoder.c
@@ -28,6 +28,7 @@
 #include <assert.h>
 #include <errno.h>
 #include <debug.h>
+#include <inttypes.h>
 
 #include <nuttx/arch.h>
 #include <nuttx/irq.h>
@@ -1039,7 +1040,9 @@ static int stm32_shutdown(FAR struct qe_lowerhalf_s *lower)
   putreg32(regval, regaddr);
   leave_critical_section(flags);
 
-  sninfo("regaddr: %08x resetbit: %08x\n", regaddr, resetbit);
+  sninfo("regaddr: %08" PRIx32 " resetbit: %08" PRIx32 "\n",
+         regaddr, resetbit);
+
   stm32_dumpregs(priv, "After stop");
 
   /* Disable clocking to the timer */