You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2021/05/05 12:33:08 UTC
[incubator-nuttx] 02/03: stm32_pwm.c: fix compilation warnings
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit b721ba05aaa0a750a81ea07b5afdfbfa9a5cbc46
Author: raiden00pl <ra...@railab.me>
AuthorDate: Wed May 5 09:20:23 2021 +0200
stm32_pwm.c: fix compilation warnings
---
arch/arm/src/stm32/stm32_pwm.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/arm/src/stm32/stm32_pwm.c b/arch/arm/src/stm32/stm32_pwm.c
index 195f169..ae849e5 100644
--- a/arch/arm/src/stm32/stm32_pwm.c
+++ b/arch/arm/src/stm32/stm32_pwm.c
@@ -3384,7 +3384,8 @@ static int pwm_pulsecount_timer(FAR struct pwm_lowerhalf_s *dev,
DEBUGASSERT(priv != NULL && info != NULL);
- pwminfo("TIM%u channel: %u frequency: %u duty: %08x count: %u\n",
+ pwminfo("TIM%u channel: %u frequency: %" PRIx32 " duty: %08" PRIx32
+ " count: %" PRIx32 "\n",
priv->timid, priv->channels[0].channel, info->frequency,
info->duty, info->count);
@@ -3873,7 +3874,7 @@ static int pwm_interrupt(FAR struct pwm_lowerhalf_s *dev)
* output.
*/
- pwminfo("Update interrupt SR: %04x prev: %u curr: %u count: %u\n",
+ pwminfo("Update interrupt SR: %04x prev: %u curr: %u count: %" PRIx32 "\n",
regval, priv->prev, priv->curr, priv->count);
return OK;
@@ -4358,7 +4359,7 @@ static int pwm_start_pulsecount(FAR struct pwm_lowerhalf_s *dev,
if (priv->timtype != TIMTYPE_ADVANCED)
{
- pwmerr("ERROR: TIM%u cannot support pulse count: %u\n",
+ pwmerr("ERROR: TIM%u cannot support pulse count: %" PRIx32 "\n",
priv->timid, info->count);
return -EPERM;
}