mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 05:43:33 +08:00
mavlink: fix PX4_DEBUG message formats
This commit is contained in:
@@ -84,13 +84,13 @@ private:
|
||||
&& (cmd.source_component == cmd.target_component);
|
||||
|
||||
if (!cmd.from_external && !px4_internal_cmd && !target_system_internal) {
|
||||
PX4_DEBUG("sending command %d to %d/%d", cmd.command, cmd.target_system, cmd.target_component);
|
||||
PX4_DEBUG("sending command %ld to %d/%d", cmd.command, cmd.target_system, cmd.target_component);
|
||||
|
||||
MavlinkCommandSender::instance().handle_vehicle_command(cmd, _mavlink->get_channel());
|
||||
sent = true;
|
||||
|
||||
} else {
|
||||
PX4_DEBUG("not forwarding command %d to %d/%d", cmd.command, cmd.target_system, cmd.target_component);
|
||||
PX4_DEBUG("not forwarding command %ld to %d/%d", cmd.command, cmd.target_system, cmd.target_component);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ private:
|
||||
|
||||
if (_mavlink_log_sub.get_last_generation() != (last_generation + 1)) {
|
||||
perf_count(_missed_msg_count_perf);
|
||||
PX4_DEBUG("channel %d has missed %d mavlink log messages", _mavlink->get_channel(),
|
||||
PX4_DEBUG("channel %d has missed %lld mavlink log messages", _mavlink->get_channel(),
|
||||
perf_event_count(_missed_msg_count_perf));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user