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); } }