From b6435bb7f2fac679cb59be3466c70a452afe0ea6 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 21 Apr 2021 08:03:26 -0700 Subject: [PATCH] drivers:camera_capture Use inttypes --- src/drivers/camera_capture/camera_capture.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drivers/camera_capture/camera_capture.cpp b/src/drivers/camera_capture/camera_capture.cpp index 6c350ddc23..1fa1709213 100644 --- a/src/drivers/camera_capture/camera_capture.cpp +++ b/src/drivers/camera_capture/camera_capture.cpp @@ -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()