aboutsummaryrefslogtreecommitdiff
path: root/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-04-21 21:31:30 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-04-21 21:31:30 +0200
commit267b78f072b105294e28578d2d8bf28e56ff9fc9 (patch)
treea2087d28ad3ae09a4827cc8da8bd9bea9cfe2c6d /src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp
parent27755806d5577c63867b0d78f0c731ac7f374d48 (diff)
downloadpx4-firmware-267b78f072b105294e28578d2d8bf28e56ff9fc9.tar.gz
px4-firmware-267b78f072b105294e28578d2d8bf28e56ff9fc9.tar.bz2
px4-firmware-267b78f072b105294e28578d2d8bf28e56ff9fc9.zip
Fix of errors triggered by more pedantic compile options
Diffstat (limited to 'src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp')
-rw-r--r--src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp b/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp
index 8ea611802..46bd399f7 100644
--- a/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp
+++ b/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp
@@ -732,21 +732,21 @@ FixedwingEstimator::task_main()
case 1:
{
const char* str = "NaN in states, resetting";
- warnx(str);
+ warnx("%s", str);
mavlink_log_critical(_mavlink_fd, str);
break;
}
case 2:
{
const char* str = "stale IMU data, resetting";
- warnx(str);
+ warnx("%s", str);
mavlink_log_critical(_mavlink_fd, str);
break;
}
case 3:
{
const char* str = "switching dynamic / static state";
- warnx(str);
+ warnx("%s", str);
mavlink_log_critical(_mavlink_fd, str);
break;
}