From 89a4d02fceb42316baee7f746a040996ad81c893 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 11 Nov 2020 10:02:07 +0900 Subject: [PATCH] examples/adc/adc_main.c: Fix a printf format warning --- examples/adc/adc_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/adc/adc_main.c b/examples/adc/adc_main.c index 51584b3a3..8ab4c5867 100644 --- a/examples/adc/adc_main.c +++ b/examples/adc/adc_main.c @@ -331,7 +331,7 @@ int main(int argc, FAR char *argv[]) printf("Sample:\n"); for (i = 0; i < nsamples; i++) { - printf("%d: channel: %d value: %d\n", + printf("%d: channel: %d value: %" PRId32 "\n", i + 1, sample[i].am_channel, sample[i].am_data); } }