diff --git a/examples/qencoder/qe_main.c b/examples/qencoder/qe_main.c index e7bd5ca4f..8306a4d48 100644 --- a/examples/qencoder/qe_main.c +++ b/examples/qencoder/qe_main.c @@ -48,6 +48,7 @@ #include #include #include +#include #include #include @@ -300,7 +301,7 @@ int main(int argc, FAR char *argv[]) else { - printf("qe_main: %3d. %d\n", nloops+1, position); + printf("qe_main: %3d. %" PRIi32 "\n", nloops + 1, position); } /* Delay a little bit */