mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue