GCS_MAVLink: fix debug formatting

This commit is contained in:
Arthur Benemann 2015-07-21 20:50:22 +09:00 committed by Randy Mackay
parent 521f3dc4b9
commit e3398648d7

View File

@ -137,12 +137,12 @@ bool MAVLink_routing::check_and_forward(mavlink_channel_t in_channel, const mavl
if (comm_get_txspace(routes[i].channel) >= if (comm_get_txspace(routes[i].channel) >=
((uint16_t)msg->len) + MAVLINK_NUM_NON_PAYLOAD_BYTES) { ((uint16_t)msg->len) + MAVLINK_NUM_NON_PAYLOAD_BYTES) {
#if ROUTING_DEBUG #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, msg->msgid,
(unsigned)in_channel, (unsigned)in_channel,
(unsigned)routes[i].channel, (unsigned)routes[i].channel,
(unsigned)target_system, (int)target_system,
(unsigned)target_component); (int)target_component);
#endif #endif
_mavlink_resend_uart(routes[i].channel, msg); _mavlink_resend_uart(routes[i].channel, msg);
} }