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/02/16 04:04:14 UTC
[incubator-nuttx-apps] branch master updated: examples/watchdog:
Fix 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/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new fe57324 examples/watchdog: Fix printf format warnings
fe57324 is described below
commit fe5732494bd11173d2ae9642ab3d06811d3d2c2d
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Mon Feb 15 15:04:48 2021 -0300
examples/watchdog: Fix printf format warnings
---
examples/watchdog/watchdog_main.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/examples/watchdog/watchdog_main.c b/examples/watchdog/watchdog_main.c
index 294ddad..0bc7e80 100644
--- a/examples/watchdog/watchdog_main.c
+++ b/examples/watchdog/watchdog_main.c
@@ -298,7 +298,10 @@ int main(int argc, FAR char *argv[])
goto errout_with_dev;
}
- printf("wdog_main: flags=%08x timeout=%d timeleft=%d\n",
+ printf("wdog_main:"
+ " flags=%08" PRIu32
+ " timeout=%" PRIu32
+ " timeleft=%" PRIu32 "\n",
status.flags, status.timeout, status.timeleft);
#endif
@@ -341,7 +344,10 @@ int main(int argc, FAR char *argv[])
goto errout_with_dev;
}
- printf("wdog_main: flags=%08x timeout=%d timeleft=%d\n",
+ printf("wdog_main:"
+ " flags=%08" PRIu32
+ " timeout=%" PRIu32
+ " timeleft=%" PRIu32 "\n",
status.flags, status.timeout, status.timeleft);
#endif