drivers:camera_capture Use inttypes

This commit is contained in:
David Sidrane 2021-04-21 08:03:26 -07:00 committed by Julian Oes
parent 3a0770499a
commit b6435bb7f2
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
/****************************************************************************
*
* Copyright (c) 2018 PX4 Development Team. All rights reserved.
* Copyright (c) 2018, 2021 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@ -264,7 +264,7 @@ CameraCapture::set_capture_control(bool enabled)
_gpio_capture = false;
} else {
PX4_ERR("Unable to set capture callback for chan %u\n", conf.channel);
PX4_ERR("Unable to set capture callback for chan %" PRIu8 "\n", conf.channel);
_capture_enabled = false;
goto err_out;
}
@ -314,7 +314,7 @@ void
CameraCapture::status()
{
PX4_INFO("Capture enabled : %s", _capture_enabled ? "YES" : "NO");
PX4_INFO("Frame sequence : %u", _capture_seq);
PX4_INFO("Frame sequence : %" PRIu32, _capture_seq);
if (_last_trig_time != 0) {
PX4_INFO("Last trigger timestamp : %" PRIu64 " (%i ms ago)", _last_trig_time,
@ -328,7 +328,7 @@ CameraCapture::status()
PX4_INFO("Last exposure time : %0.2f ms", double(_last_exposure_time) / 1000.0);
}
PX4_INFO("Number of overflows : %u", _capture_overflows);
PX4_INFO("Number of overflows : %" PRIu32, _capture_overflows);
}
static int usage()