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:
Lucas De Marchi 2022-01-03 00:51:30 -08:00 committed by Lucas De Marchi
parent 7744dda4b0
commit 1ab005dc99
1 changed files with 1 additions and 1 deletions

View File

@ -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