mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-18 23:03:34 +03:00
fix DEBUG macros (#5728)
* fix DEBUG macros All fmt strings in flash fix #5658 This also allows to avoid warnings and easy mistakes with (no brace): if (something) DEBUGV("blah"); * use newlib unaligned-compatible printf for DEBUGV * remove useless putprintf since ::printf already uses ets_putc
This commit is contained in:
@ -34,4 +34,3 @@ void ICACHE_RAM_ATTR hexdump(const void *mem, uint32_t len, uint8_t cols) {
|
||||
}
|
||||
os_printf("\n");
|
||||
}
|
||||
|
||||
|
@ -5,11 +5,11 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef DEBUG_ESP_CORE
|
||||
#define DEBUGV(...) ets_printf(__VA_ARGS__)
|
||||
#define DEBUGV(fmt, ...) ::printf((PGM_P)PSTR(fmt), ## __VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#ifndef DEBUGV
|
||||
#define DEBUGV(...)
|
||||
#define DEBUGV(...) do { (void)0; } while (0)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user