aboutsummaryrefslogtreecommitdiff
path: root/src/modules/systemlib
diff options
context:
space:
mode:
authorultrasystem <liio@qq.com>2014-05-12 21:17:19 +0800
committerultrasystem <liio@qq.com>2014-05-12 21:17:19 +0800
commitdb2b85cbd42c17ef581e62c8b2363b6fc37e9617 (patch)
treed0bcaa181ef921837293a474aae75a267653282e /src/modules/systemlib
parent47d21f0c572d3d70e3577cb510d3b305794574ba (diff)
downloadpx4-firmware-db2b85cbd42c17ef581e62c8b2363b6fc37e9617.tar.gz
px4-firmware-db2b85cbd42c17ef581e62c8b2363b6fc37e9617.tar.bz2
px4-firmware-db2b85cbd42c17ef581e62c8b2363b6fc37e9617.zip
Output a debug string is Invalid @ parameter #1
line 143 may be crash or buffer overflow. because the argument must is a pointer as char type that and have a valid buffer
Diffstat (limited to 'src/modules/systemlib')
-rw-r--r--src/modules/systemlib/rc_check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/systemlib/rc_check.c b/src/modules/systemlib/rc_check.c
index 21e15ec56..975944eb7 100644
--- a/src/modules/systemlib/rc_check.c
+++ b/src/modules/systemlib/rc_check.c
@@ -140,7 +140,7 @@ int rc_calibration_check(int mavlink_fd) {
/* sanity checks pass, enable channel */
if (count) {
mavlink_log_critical(mavlink_fd, "ERROR: %d config error(s) for RC channel %d.", count, (i + 1));
- warnx(mavlink_fd, "ERROR: %d config error(s) for RC channel %d.", count, (i + 1));
+ warnc(mavlink_fd, "ERROR: %d config error(s) for RC channel %d.", count, (i + 1));
usleep(100000);
}