examples/charger: Fix some printf format warnings
Fix some printf format warnings by -Wformat.
This commit is contained in:
parent
814f10544e
commit
4afa1f1514
@ -244,8 +244,8 @@ int main(int argc, FAR char *argv[])
|
||||
}
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
printf("%d.%06d: %d mV, %d mA\n",
|
||||
tv.tv_sec, tv.tv_usec, voltage, current);
|
||||
printf("%ju.%06ld: %d mV, %d mA\n",
|
||||
(uintmax_t)tv.tv_sec, tv.tv_usec, voltage, current);
|
||||
|
||||
close(fd);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user