]> granicus.if.org Git - esp-idf/commitdiff
components/log: fix error when using ESP_LOGx from C++ code
authorIvan Grokhotkov <ivan@espressif.com>
Sun, 18 Sep 2016 12:51:57 +0000 (20:51 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Sun, 18 Sep 2016 12:51:57 +0000 (20:51 +0800)
components/log/include/esp_log.h

index a12d324de1981acce193f325e817f00b103dfb60..d2097e3620bd010cdf2eb0cf3a532b8b0bed4a2b 100644 (file)
@@ -154,8 +154,8 @@ uint32_t esp_log_timestamp();
 #define LOG_COLOR_BLUE    "34"
 #define LOG_COLOR_PURPLE  "35"
 #define LOG_COLOR_CYAN    "36"
-#define LOG_COLOR(COLOR)  "\033[0;"COLOR"m"
-#define LOG_BOLD(COLOR)   "\033[1;"COLOR"m"
+#define LOG_COLOR(COLOR)  "\033[0;" COLOR "m"
+#define LOG_BOLD(COLOR)   "\033[1;" COLOR "m"
 #define LOG_RESET_COLOR   "\033[0m"
 #define LOG_COLOR_E       LOG_COLOR(LOG_COLOR_RED)
 #define LOG_COLOR_W       LOG_COLOR(LOG_COLOR_BROWN)