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 11:33:46 UTC

[incubator-nuttx-apps] 02/03: graphics/nxwm/src/ctouchscreen.cxx: 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

commit 4f11793e9d998806a85d4657db202f6f1129dd42
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Tue Nov 24 12:45:52 2020 +0900

    graphics/nxwm/src/ctouchscreen.cxx: Fix syslog formats
---
 graphics/nxwm/src/ctouchscreen.cxx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/graphics/nxwm/src/ctouchscreen.cxx b/graphics/nxwm/src/ctouchscreen.cxx
index b7e279c..1fab3ee 100644
--- a/graphics/nxwm/src/ctouchscreen.cxx
+++ b/graphics/nxwm/src/ctouchscreen.cxx
@@ -39,6 +39,7 @@
 
 #include <nuttx/config.h>
 
+#include <cinttypes>
 #include <cunistd>
 #include <cerrno>
 #include <cfcntl>
@@ -557,7 +558,8 @@ void CTouchscreen::handleMouseInput(struct touch_sample_s *sample)
           y = (nxgl_coord_t)bigY;
         }
 
-      _info("raw: (%d, %d) scaled: (%d, %d)\n", rawX, rawY, x, y);
+      _info("raw: (%" PRId32 ", %" PRId32 ") scaled: (%d, %d)\n",
+            rawX, rawY, x, y);
 #endif
     }