adc_main.c: In function 'main':
14:41:30 adc_main.c:310:22: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
310 | printf("adc_main: read size=%ld is not a multiple of "
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
311 | "sample size=%d, Ignoring\n",
312 | (long)nbytes, sizeof(struct adc_msg_s));
| ~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int
adc_main.c:311:36: note: format string is defined here
311 | "sample size=%d, Ignoring\n",
| ~^
| |
| int
| %ld
Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
|
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Make.defs | ||
| Makefile | ||
| adc.h | ||
| adc_main.c | ||