summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2020-01-07 16:46:14 +0800
committerGitHub <[email protected]>2020-01-07 16:46:14 +0800
commite3e0aa7f4d36275404c6b7c23728ca628733c629 (patch)
tree10e1266056ff0b79cc51592d1b97743e5fe97824
parentf5ae4d2fc3a6968c1168d953262802a7ccbbccfd (diff)
parent73cae9564b0edfeea05d277e7a673ad15acc5a1f (diff)
Merge pull request #3317 from a1012112796/writing/log
[ULOG] fix row size bug for backend which don't suport color
-rw-r--r--components/utilities/ulog/ulog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/utilities/ulog/ulog.c b/components/utilities/ulog/ulog.c
index ca356f92f2..7610089298 100644
--- a/components/utilities/ulog/ulog.c
+++ b/components/utilities/ulog/ulog.c
@@ -396,7 +396,7 @@ void ulog_output_to_all_backend(rt_uint32_t level, const char *tag, rt_bool_t is
#if !defined(ULOG_USING_COLOR) || defined(ULOG_USING_SYSLOG)
backend->output(backend, level, tag, is_raw, log, size);
#else
- if (backend->support_color)
+ if (backend->support_color || is_raw)
{
backend->output(backend, level, tag, is_raw, log, size);
}