examples/qencoder/qe_main.c: Fix printf() format specifier
examples/qencoder/qe_main.c: * main(): Call to printf() had "%d" but argument was int32_t, leading to compiler warning. Change format specifier to PRIi32 (suggested by Gregory Nutt).
This commit is contained in:
parent
960e63402e
commit
331fd61115
@ -48,6 +48,7 @@
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#include <inttypes.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user