fix build warning

This commit is contained in:
chinky 2022-01-24 16:33:32 +08:00
parent 1218f9c02b
commit 76986e8c8b

View File

@ -447,7 +447,7 @@ void ulog_output_to_all_backend(rt_uint32_t level, const char *tag, rt_bool_t is
{
/* recalculate the log start address and log size when backend not supported color */
rt_size_t color_info_len = 0, output_size = size;
char *output_log = log;
const char *output_log = log;
if (color_output_info[level] != RT_NULL)
color_info_len = rt_strlen(color_output_info[level]);