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; }