From 69da172c5f5c27fd2b33e6893239c0ea03aa8a24 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 24 Nov 2020 07:03:51 +0900 Subject: [PATCH] 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 f2e0cfd7f..d5f43f2e3 100644 --- a/system/cle/cle.c +++ b/system/cle/cle.c @@ -39,6 +39,7 @@ #include +#include #include #include #include @@ -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 */