mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
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:
parent
288952b5a2
commit
502f74f0d9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user