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 2020/11/24 02:23:32 UTC
[incubator-nuttx-apps] branch master updated: system/cle/cle.c: Fix
syslog formats
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 69da172 system/cle/cle.c: Fix syslog formats
69da172 is described below
commit 69da172c5f5c27fd2b33e6893239c0ea03aa8a24
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Tue Nov 24 07:03:51 2020 +0900
system/cle/cle.c: Fix syslog formats
---
system/cle/cle.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/system/cle/cle.c b/system/cle/cle.c
index f2e0cfd..d5f43f2 100644
--- a/system/cle/cle.c
+++ b/system/cle/cle.c
@@ -39,6 +39,7 @@
#include <nuttx/config.h>
+#include <inttypes.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdbool.h>
@@ -553,7 +554,7 @@ static int cle_getcursor(FAR struct cle_s *priv, FAR uint16_t *prow,
/* ...we are done */
- cleinfo("row=%ld column=%ld\n", row, column);
+ cleinfo("row=%" PRId32 " column=%" PRId32 "\n", row, column);
/* Make sure that the values are within range */
@@ -758,7 +759,7 @@ static void cle_showtext(FAR struct cle_s *priv)
static void cle_insertch(FAR struct cle_s *priv, char ch)
{
- cleinfo("curpos=%ld ch=%c[%02x]\n", priv->curpos,
+ cleinfo("curpos=%" PRId16 " ch=%c[%02x]\n", priv->curpos,
isprint(ch) ? ch : '.', ch);
/* Make space in the buffer for the new character */