AP_Logger: switch to using stderr for log structure debug

The console output doesn't seem to appear anywhere now.
This commit is contained in:
Peter Barker 2019-07-05 11:03:10 +10:00 committed by Peter Barker
parent 288952b5a2
commit 502f74f0d9
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ void AP_Logger::Init(const struct LogStructure *structures, uint8_t num_types)
#define DEBUG_LOG_STRUCTURES 0
extern const AP_HAL::HAL& hal;
#define Debug(fmt, args ...) do {hal.console->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); } while(0)
/// return the number of commas present in string
static uint8_t count_commas(const char *string)