nuttx-apps/examples/adc
v-tangmeng 05f1ab7b6a adc: fix the compilation error
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>
2026-04-20 15:20:13 +08:00
..
CMakeLists.txt cmake:refine cmake build for apps/examples 2026-04-20 15:11:53 +08:00
Kconfig Rename CONFIG_LIB_BOARDCTL to CONFIG_BOARDCTL 2026-04-20 14:56:49 +08:00
Make.defs nshlib: support c++ access nsh api 2026-04-20 14:56:29 +08:00
Makefile nshlib: support c++ access nsh api 2026-04-20 14:56:29 +08:00
adc.h Merge branch 'dev-merge-github-20230228' into dev 2026-04-20 15:12:39 +08:00
adc_main.c adc: fix the compilation error 2026-04-20 15:20:13 +08:00