From 93bd2d8d7a0e47d2e758434f5b6cc90ff0e07054 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 30 Nov 2020 19:54:33 +0900 Subject: [PATCH] arch/arm/src/lc823450/lc823450_wdt.c: Fix syslog formats --- arch/arm/src/lc823450/lc823450_wdt.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/arm/src/lc823450/lc823450_wdt.c b/arch/arm/src/lc823450/lc823450_wdt.c index eb869b3837..a8dc72debc 100644 --- a/arch/arm/src/lc823450/lc823450_wdt.c +++ b/arch/arm/src/lc823450/lc823450_wdt.c @@ -25,6 +25,7 @@ #include #include +#include #include #include #include @@ -328,9 +329,9 @@ static int lc823450_wdt_getstatus(FAR struct watchdog_lowerhalf_s *lower, (2 * (256 - WT0BCGST) * 1000) / wdt_freq; 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 : %" PRId32 "\n", status->timeout); + wdinfo(" timeleft : %" PRId32 "\n", status->timeleft); return OK; } @@ -369,7 +370,7 @@ static int lc823450_wdt_settimeout(FAR struct watchdog_lowerhalf_s *lower, if (wt0pstst < 1 || wt0pstst > 0xffff) { - wdinfo("Error: timeout= %d < %d > %d\n", + wdinfo("Error: timeout= %" PRId32 " < %" PRId32 " > %" PRId32 "\n", 65536 - 1 * wdt_freq / (2 * (256 - WT0BCGST) * 1000), timeout, 65536 - 0xffff * wdt_freq / (2 * (256 - WT0BCGST) * 1000)); /* 22s */ @@ -394,7 +395,7 @@ static int lc823450_wdt_settimeout(FAR struct watchdog_lowerhalf_s *lower, lc823450_wdt_start(lower); - wdinfo("Entry: timeout=%d\n", timeout); + wdinfo("Entry: timeout=%" PRId32 "\n", timeout); return OK; }