mavlink: fix PX4_DEBUG message formats

This commit is contained in:
Junwoo Hwang
2022-08-12 09:43:12 +02:00
committed by Beat Küng
parent 0c218e6628
commit d7a962b426
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -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));
}