AP_HAL_Linux: send warning to stderr

This commit is contained in:
Lucas De Marchi 2018-09-19 23:21:13 -07:00
parent 5ae3c60e8b
commit 0990fc4400

View File

@ -66,7 +66,7 @@ void Scheduler::init_realtime()
#if APM_BUILD_TYPE(APM_BUILD_UNKNOWN)
// we opportunistically run examples/tools in realtime
if (geteuid() != 0) {
printf("WARNING: not running as root. Will not use realtime scheduling\n");
fprintf(stderr, "WARNING: not running as root. Will not use realtime scheduling\n");
return;
}
#endif