From 0cd0192a57e12953ac6cec41f3dc88cb8f97d48c Mon Sep 17 00:00:00 2001 From: Sergey Date: Mon, 8 Jun 2020 11:37:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20warnings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/libs/Segger/log.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Marlin/src/libs/Segger/log.h b/Marlin/src/libs/Segger/log.h index c251cab328..29844e2235 100644 --- a/Marlin/src/libs/Segger/log.h +++ b/Marlin/src/libs/Segger/log.h @@ -10,8 +10,8 @@ //#define COLOR_LOG_RTT -//#define DEBUG_TO_UART -#define DEBUG_TO_SEGGER_RTT +#define DEBUG_TO_UART +//#define DEBUG_TO_SEGGER_RTT #ifdef COLOR_LOG_RTT @@ -39,22 +39,22 @@ #ifdef DEBUG_TO_UART #ifdef DEBUG_MSG - #define DEBUG(fmt, args...) debug_to_uart("[D] %-20s:%-4d :" fmt "\n", __func__, __LINE__, ## args) + #define DEBUG(fmt, args...) debug_to_uart((char*)"[D] %-20s:%-4d :" fmt "\n", __func__, __LINE__, ## args) #else #define DEBUG(fmt, args...) #endif #ifdef INFO_MSG - #define INFO(fmt, args...) debug_to_uart("[I] %-20s:%-4d :" fmt "\n", __func__, __LINE__, ## args) + #define INFO(fmt, args...) debug_to_uart((char*)"[I] %-20s:%-4d :" fmt "\n", __func__, __LINE__, ## args) #else #define INFO(fmt, args...) #endif #ifdef WARNING_MSG - #define WARNING(fmt, args...) debug_to_uart("[W] %-20s:%-4d :" fmt "\n", __func__, __LINE__, ## args) + #define WARNING(fmt, args...) debug_to_uart((char*)"[W] %-20s:%-4d :" fmt "\n", __func__, __LINE__, ## args) #else #define WARNING(fmt, args...) #endif #ifdef ERROR_MSG - #define ERROR(fmt, args...) debug_to_uart("[E] %-20s:%-4d :" fmt "\n", __func__, __LINE__,## args) + #define ERROR(fmt, args...) debug_to_uart((char*)"[E] %-20s:%-4d :" fmt "\n", __func__, __LINE__,## args) #else #define ERROR(fmt, args...) #endif