examples/charger: Fix some printf format warnings
Fix some printf format warnings by -Wformat.
@@ -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);
