diff --git a/examples/touchscreen/tc_main.c b/examples/touchscreen/tc_main.c index 1672d1a31..d13ecb4a1 100644 --- a/examples/touchscreen/tc_main.c +++ b/examples/touchscreen/tc_main.c @@ -110,7 +110,7 @@ int main(int argc, FAR char *argv[]) nsamples = strtol(argv[1], NULL, 10); } - printf("tc_main: nsamples: %d\n", nsamples); + printf("tc_main: nsamples: %ld\n", nsamples); /* Open the touchscreen device for reading */