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 2023/09/21 01:04:12 UTC
[nuttx] branch master updated: Fix historic %08x style printf format warnings
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/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new b406a30398 Fix historic %08x style printf format warnings
b406a30398 is described below
commit b406a3039812d1b7dd05a0ddb282b8b6ceb80325
Author: TimJTi <56...@users.noreply.github.com>
AuthorDate: Wed Sep 20 16:45:56 2023 +0100
Fix historic %08x style printf format warnings
---
arch/arm/src/sama5/sam_pwm.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm/src/sama5/sam_pwm.c b/arch/arm/src/sama5/sam_pwm.c
index fb76d80320..5d353451b6 100644
--- a/arch/arm/src/sama5/sam_pwm.c
+++ b/arch/arm/src/sama5/sam_pwm.c
@@ -856,7 +856,7 @@ static int pwm_setup(struct pwm_lowerhalf_s *dev)
{
struct sam_pwm_chan_s *chan = (struct sam_pwm_chan_s *)dev;
- pwminfo("Channel %d: H=%08x L=%08x FI=%08x\n",
+ pwminfo("Channel %d: H=%08" PRIx32 " L=%08" PRIx32 " FI=%08" PRIx32 "\n",
chan->channel, chan->ohpincfg, chan->olpincfg, chan->fipincfg);
/* Configure selected PWM pins */
@@ -1029,7 +1029,8 @@ static int pwm_start(struct pwm_lowerhalf_s *dev,
}
pwm_chan_putreg(chan, SAM_PWM_CDTY_OFFSET, regval);
- pwminfo("Fsrc=%d cprd=%d cdty=%d\n", fsrc, cprd, regval);
+ pwminfo("Fsrc=%" PRIu32 " cprd=%" PRIi32 " cdty=%" PRIx32 "\n",
+ fsrc, cprd, regval);
/* Enable the channel */