Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions arch/arm/src/stm32h7/stm32_iwdg.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ static int stm32_start(struct watchdog_lowerhalf_s *lower)
struct stm32_lowerhalf_s *priv = (struct stm32_lowerhalf_s *)lower;
irqstate_t flags;

wdinfo("Entry: started=%d\n");
DEBUGASSERT(priv);
wdinfo("Entry: started=%d\n", priv->started);

/* Have we already been started? */

Expand Down Expand Up @@ -462,9 +462,9 @@ static int stm32_getstatus(struct watchdog_lowerhalf_s *lower,
status->timeleft = priv->timeout - elapsed;

wdinfo("Status :\n");
wdinfo(" flags : %08x\n", status->flags);
wdinfo(" timeout : %d\n", status->timeout);
wdinfo(" timeleft : %d\n", status->timeleft);
wdinfo(" flags : %08"PRIx32"\n", status->flags);
wdinfo(" timeout : %"PRIu32"\n", status->timeout);
wdinfo(" timeleft : %"PRIu32"\n", status->timeleft);
return OK;
}

Expand Down Expand Up @@ -493,14 +493,14 @@ static int stm32_settimeout(struct watchdog_lowerhalf_s *lower,
int prescaler;
int shift;

wdinfo("Entry: timeout=%d\n", timeout);
wdinfo("Entry: timeout=%"PRIu32"\n", timeout);
DEBUGASSERT(priv);

/* Can this timeout be represented? */

if (timeout < 1 || timeout > IWDG_MAXTIMEOUT)
{
wderr("ERROR: Cannot represent timeout=%d > %d\n",
wderr("ERROR: Cannot represent timeout=%"PRIu32" > %d\n",
timeout, IWDG_MAXTIMEOUT);
return -ERANGE;
}
Expand Down Expand Up @@ -608,7 +608,7 @@ static int stm32_settimeout(struct watchdog_lowerhalf_s *lower,
}
#endif

wdinfo("prescaler=%d fiwdg=%d reload=%d\n", prescaler, fiwdg, reload);
wdinfo("prescaler=%d fiwdg=%"PRIu32" reload=%"PRIu64"\n", prescaler, fiwdg, reload);

return OK;
}
Expand Down Expand Up @@ -639,7 +639,7 @@ void stm32_iwdginitialize(const char *devpath, uint32_t lsifreq)
{
struct stm32_lowerhalf_s *priv = &g_wdgdev;

wdinfo("Entry: devpath=%s lsifreq=%d\n", devpath, lsifreq);
wdinfo("Entry: devpath=%s lsifreq=%"PRIu32"\n", devpath, lsifreq);

/* NOTE we assume that clocking to the IWDG has already been provided by
* the RCC initialization logic.
Expand All @@ -659,7 +659,7 @@ void stm32_iwdginitialize(const char *devpath, uint32_t lsifreq)
*/

stm32_rcc_enablelsi();
wdinfo("RCC CSR: %08x\n", getreg32(STM32_RCC_CSR));
wdinfo("RCC CSR: %08"PRIx32"\n", getreg32(STM32_RCC_CSR));

/* Select an arbitrary initial timeout value. But don't start the watchdog
* yet. NOTE: If the "Hardware watchdog" feature is enabled through the
Expand Down