mirror of https://github.com/ArduPilot/ardupilot
AP_Logger: use stderr for debug
Make AP_Logger_MAVLink use stderr, so it's easier to follow the debug outputs without mixing with normal output. And this is also what AP_Logger is using.
This commit is contained in:
parent
7744dda4b0
commit
1ab005dc99
|
@ -12,7 +12,7 @@
|
|||
|
||||
#if REMOTE_LOG_DEBUGGING
|
||||
#include <stdio.h>
|
||||
# define Debug(fmt, args ...) do {printf("%s:%d: " fmt "\n", __FUNCTION__, __LINE__, ## args); hal.scheduler->delay(1); } while(0)
|
||||
# define Debug(fmt, args ...) do {fprintf(stderr, "%s:%d: " fmt "\n", __FUNCTION__, __LINE__, ## args); hal.scheduler->delay(1); } while(0)
|
||||
#else
|
||||
# define Debug(fmt, args ...)
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue