mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
examples/ina219/ina219_main.c: Fix a printf format warning
This commit is contained in:
parent
e4823bc62c
commit
8532f0ee96
1 changed files with 3 additions and 1 deletions
|
|
@ -38,6 +38,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
|
@ -66,7 +67,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" PRId32 " uA\n",
|
||||
sample.voltage, sample.current);
|
||||
}
|
||||
|
||||
close(fd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue