examples/charger: Fix some printf format warnings

Fix some printf format warnings by -Wformat.
This commit is contained in:
SPRESENSE 2021-07-04 09:06:57 +09:00 committed by Xiang Xiao
parent 814f10544e
commit 4afa1f1514

View File

@ -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);