Added a new LOG_OUTPUT, and a new LOG_DEBUG. Hopefully this will allow
running run_avr without -v to get the expected output.
Signed-off-by: Michel Pollet <buserror@gmail.com>
2 files changed:
p->stdio_out[p->stdio_len] = 0;
if (v == '\n' || p->stdio_len == maxsize) {
p->stdio_len = 0;
- AVR_LOG(avr, LOG_TRACE, FONT_GREEN "%s\n" FONT_DEFAULT, p->stdio_out);
+ AVR_LOG(avr, LOG_OUTPUT,
+ FONT_GREEN "%s\n" FONT_DEFAULT, p->stdio_out);
}
}
TRACE(printf("UDR%c(%02x) = %02x\n", p->name, addr, v);)
* The current log level is kept in avr->log.
*/
enum {
- LOG_OUTPUT = 0,
+ LOG_NONE = 0,
+ LOG_OUTPUT,
LOG_ERROR,
LOG_WARNING,
LOG_TRACE,
+ LOG_DEBUG,
};
// DEBUG ONLY -- value ignored if CONFIG_SIMAVR_TRACE = 0
uint8_t trace : 1,
- log : 2; // log level, default to 1
+ log : 4; // log level, default to 1
// Only used if CONFIG_SIMAVR_TRACE is defined
struct avr_trace_data_t *trace_data;