From 2d4d8aa6430ca3f7ca3fdc5d241382b29d77bd55 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 16 Nov 2020 14:18:31 +0900 Subject: [PATCH] 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 d13ecb4a1..a3b672683 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 */