mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_HAL_Linux: send warning to stderr
This commit is contained in:
parent
5ae3c60e8b
commit
0990fc4400
@ -66,7 +66,7 @@ void Scheduler::init_realtime()
|
|||||||
#if APM_BUILD_TYPE(APM_BUILD_UNKNOWN)
|
#if APM_BUILD_TYPE(APM_BUILD_UNKNOWN)
|
||||||
// we opportunistically run examples/tools in realtime
|
// we opportunistically run examples/tools in realtime
|
||||||
if (geteuid() != 0) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user