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/25 06:31:54 UTC

[incubator-nuttx] 11/28: graphics/nxterm/nxterm_kbdin.c: Fix a syslog format

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.git

commit 78c03c88bdb12792a961b5561a0275b554c533fe
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Tue Nov 24 12:50:41 2020 +0900

    graphics/nxterm/nxterm_kbdin.c: Fix a syslog format
---
 graphics/nxterm/nxterm_kbdin.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/graphics/nxterm/nxterm_kbdin.c b/graphics/nxterm/nxterm_kbdin.c
index 6aabfaa..cdc8a6a 100644
--- a/graphics/nxterm/nxterm_kbdin.c
+++ b/graphics/nxterm/nxterm_kbdin.c
@@ -39,6 +39,7 @@
 
 #include <nuttx/config.h>
 
+#include <inttypes.h>
 #include <fcntl.h>
 #include <sched.h>
 #include <assert.h>
@@ -384,7 +385,7 @@ void nxterm_kbdin(NXTERM handle, FAR const uint8_t *buffer, uint8_t buflen)
   char ch;
   int ret;
 
-  ginfo("buflen=%d\n");
+  ginfo("buflen=%" PRId8 "\n", buflen);
   DEBUGASSERT(handle);
 
   /* Get the reference to the driver structure from the handle */