From b6d15565be0e4da42efc0ce34f21d008adb7027a Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Sat, 29 Dec 2018 17:21:25 +0100 Subject: [PATCH] cpu/esp8266: macros required by esp_now_netdev --- cpu/esp8266/include/common.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpu/esp8266/include/common.h b/cpu/esp8266/include/common.h index 520285d70e..d006cba148 100644 --- a/cpu/esp8266/include/common.h +++ b/cpu/esp8266/include/common.h @@ -83,6 +83,12 @@ extern "C" { #define CHECK_PARAM(cond) if (!(cond)) return; #endif + +#define LOG_TAG_ERROR(tag, fmt, ...) LOG_ERROR("[%s] " fmt, tag, ##__VA_ARGS__) +#define LOG_TAG_WARNING(tag, fmt, ...) LOG_WARNING("[%s] " fmt, tag, ##__VA_ARGS__) +#define LOG_TAG_INFO(tag, fmt, ...) LOG_INFO("[%s] " fmt, tag, ##__VA_ARGS__) +#define LOG_TAG_DEBUG(tag, fmt, ...) LOG_DEBUG("[%s] " fmt, tag, ##__VA_ARGS__) + /** @} */ #ifdef __cplusplus