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/16 05:33:38 UTC

[incubator-nuttx-apps] 03/03: examples/touchscreen/tc_main.c: Fix a printf format warning

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 2d4d8aa6430ca3f7ca3fdc5d241382b29d77bd55
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Mon Nov 16 14:18:31 2020 +0900

    examples/touchscreen/tc_main.c: Fix a printf format warning
---
 examples/touchscreen/tc_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/touchscreen/tc_main.c b/examples/touchscreen/tc_main.c
index d13ecb4..a3b6726 100644
--- a/examples/touchscreen/tc_main.c
+++ b/examples/touchscreen/tc_main.c
@@ -200,9 +200,9 @@ int main(int argc, FAR char *argv[])
         }
       else if (nbytes != sizeof(struct touch_sample_s))
         {
-          printf("tc_main: Unexpected read size=%ld, expected=%d, "
+          printf("tc_main: Unexpected read size=%zd, expected=%zd, "
                  "Ignoring\n",
-                 (long)nbytes, sizeof(struct touch_sample_s));
+                 nbytes, sizeof(struct touch_sample_s));
         }
 
       /* Print the sample data on successful return */