mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Fixes compiler warnings while printing uint32_t and int32_t values.
This commit is contained in:
parent
60778f6f8c
commit
e62e1e91fe
1 changed files with 3 additions and 1 deletions
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
|
@ -70,7 +71,8 @@ int main(int argc, FAR char *argv[])
|
|||
break;
|
||||
}
|
||||
|
||||
printf("U=%12u uV I=%12d uA\n", sample.voltage, sample.current);
|
||||
printf("U=%12"PRIu32 "uV I=%12"PRIi32 "uA\n", sample.voltage,
|
||||
sample.current);
|
||||
|
||||
usleep(500000);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue