From e3398648d7c7b14f6be42ab87d54f847bb45840a Mon Sep 17 00:00:00 2001 From: Arthur Benemann Date: Tue, 21 Jul 2015 20:50:22 +0900 Subject: [PATCH] GCS_MAVLink: fix debug formatting --- libraries/GCS_MAVLink/MAVLink_routing.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/GCS_MAVLink/MAVLink_routing.cpp b/libraries/GCS_MAVLink/MAVLink_routing.cpp index 56548b658b..f4cebd1f40 100644 --- a/libraries/GCS_MAVLink/MAVLink_routing.cpp +++ b/libraries/GCS_MAVLink/MAVLink_routing.cpp @@ -137,12 +137,12 @@ bool MAVLink_routing::check_and_forward(mavlink_channel_t in_channel, const mavl if (comm_get_txspace(routes[i].channel) >= ((uint16_t)msg->len) + MAVLINK_NUM_NON_PAYLOAD_BYTES) { #if ROUTING_DEBUG - ::printf("fwd msg %u from chan %u on chan %u sysid=%u compid=%u\n", + ::printf("fwd msg %u from chan %u on chan %u sysid=%d compid=%d\n", msg->msgid, (unsigned)in_channel, (unsigned)routes[i].channel, - (unsigned)target_system, - (unsigned)target_component); + (int)target_system, + (int)target_component); #endif _mavlink_resend_uart(routes[i].channel, msg); }