From acd03c663670dfb1eda1f0e739f24a643dd51680 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 29 Oct 2019 08:57:16 +1100 Subject: [PATCH] SIM_AirSim: correct format string issue --- libraries/SITL/SIM_AirSim.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/SITL/SIM_AirSim.cpp b/libraries/SITL/SIM_AirSim.cpp index bac76a8aae..9e8ec3f7a6 100644 --- a/libraries/SITL/SIM_AirSim.cpp +++ b/libraries/SITL/SIM_AirSim.cpp @@ -73,9 +73,9 @@ void AirSim::send_servos(const struct sitl_input &input) if (send_ret != sizeof(pkt)) { if (send_ret <= 0) { printf("Unable to send servo output to %s:%u - Error: %s, Return value: %ld\n", - airsim_ip, airsim_control_port, strerror(errno), send_ret); + airsim_ip, airsim_control_port, strerror(errno), (long)send_ret); } else { - printf("Sent %ld bytes instead of %ld bytes\n", send_ret, sizeof(pkt)); + printf("Sent %ld bytes instead of %lu bytes\n", (long)send_ret, (unsigned long)sizeof(pkt)); } } }