From 3b725e55256ab76e0bce6824bae1fd36f42df980 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 22 Apr 2021 06:06:44 -0700 Subject: [PATCH] gyro_fft:Use inttypes --- src/modules/gyro_fft/GyroFFT.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/gyro_fft/GyroFFT.cpp b/src/modules/gyro_fft/GyroFFT.cpp index b63eab2600..fafc7decee 100644 --- a/src/modules/gyro_fft/GyroFFT.cpp +++ b/src/modules/gyro_fft/GyroFFT.cpp @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (c) 2020 PX4 Development Team. All rights reserved. + * Copyright (c) 2020, 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 @@ -128,7 +128,7 @@ bool GyroFFT::init() default: // otherwise default to 256 - PX4_ERR("Invalid IMU_GYRO_FFT_LEN=%d, resetting", _param_imu_gyro_fft_len.get()); + PX4_ERR("Invalid IMU_GYRO_FFT_LEN=%" PRId32 ", resetting", _param_imu_gyro_fft_len.get()); AllocateBuffers<256>(); _param_imu_gyro_fft_len.set(256); _param_imu_gyro_fft_len.commit(); @@ -199,7 +199,7 @@ bool GyroFFT::SensorSelectionUpdate(bool force) } } - PX4_ERR("unable to find or subscribe to selected sensor (%d)", sensor_selection.gyro_device_id); + PX4_ERR("unable to find or subscribe to selected sensor (%" PRIu32 ")", sensor_selection.gyro_device_id); } }