From 5724bef14d75f1a14b1b8e9f7c7d43836424cb24 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 2 Jul 2017 20:59:25 +0200 Subject: [PATCH] VTOL att controller: Code style fix --- src/modules/vtol_att_control/vtol_att_control_main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/vtol_att_control/vtol_att_control_main.cpp b/src/modules/vtol_att_control/vtol_att_control_main.cpp index 63a319a000..de122c46fb 100644 --- a/src/modules/vtol_att_control/vtol_att_control_main.cpp +++ b/src/modules/vtol_att_control/vtol_att_control_main.cpp @@ -689,7 +689,7 @@ void VtolAttitudeControl::task_main() } /* wait for up to 100ms for data */ - int pret = px4_poll(&fds[0], (sizeof(fds) / sizeof(fds[0])), 100); + int pret = px4_poll(&fds[0], sizeof(fds) / sizeof(fds[0]), 100); /* timed out - periodic check for _task_should_exit */ @@ -699,7 +699,7 @@ void VtolAttitudeControl::task_main() /* this is undesirable but not much we can do - might want to flag unhappy status */ if (pret < 0) { - warn("poll error %d, %d", pret, errno); + PX4_WARN("poll error %d, %d", pret, errno); /* sleep a bit before next try */ usleep(100000); continue; @@ -844,7 +844,7 @@ void VtolAttitudeControl::task_main() } } - warnx("exit"); + PX4_WARN("exit"); _control_task = -1; }