summaryrefslogtreecommitdiffstats
path: root/liblog
diff options
context:
space:
mode:
authorTreehugger Robot2018-05-22 17:44:56 -0500
committerGerrit Code Review2018-05-22 17:44:56 -0500
commit2a1c0dd6df7a2cc9817fe9d7fc8ae10a07c96564 (patch)
tree6775c83490228b45ea2024eb70fb0884d724bed7 /liblog
parent931a840e8c3494a4fac881c6f7b8663679ca6a88 (diff)
parent487de273455671edfd7a76d3c87bb5aaffd59ce1 (diff)
downloadplatform-system-core-2a1c0dd6df7a2cc9817fe9d7fc8ae10a07c96564.tar.gz
platform-system-core-2a1c0dd6df7a2cc9817fe9d7fc8ae10a07c96564.tar.xz
platform-system-core-2a1c0dd6df7a2cc9817fe9d7fc8ae10a07c96564.zip
Merge "Simplify code"
Diffstat (limited to 'liblog')
-rw-r--r--liblog/logprint.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/liblog/logprint.c b/liblog/logprint.c
index a2839bfb6..7937cb1c5 100644
--- a/liblog/logprint.c
+++ b/liblog/logprint.c
@@ -1632,8 +1632,10 @@ LIBLOG_ABI_PUBLIC char* android_log_formatLogLine(AndroidLogFormat* p_format,
1632 prefixLen = snprintf(prefixBuf, sizeof(prefixBuf), "\x1B[38;5;%dm", 1632 prefixLen = snprintf(prefixBuf, sizeof(prefixBuf), "\x1B[38;5;%dm",
1633 colorFromPri(entry->priority)); 1633 colorFromPri(entry->priority));
1634 prefixLen = MIN(prefixLen, sizeof(prefixBuf)); 1634 prefixLen = MIN(prefixLen, sizeof(prefixBuf));
1635 suffixLen = snprintf(suffixBuf, sizeof(suffixBuf), "\x1B[0m"); 1635
1636 suffixLen = MIN(suffixLen, sizeof(suffixBuf)); 1636 const char suffixContents[] = "\x1B[0m";
1637 strcpy(suffixBuf, suffixContents);
1638 suffixLen = strlen(suffixContents);
1637 } 1639 }
1638 1640
1639 char uid[16]; 1641 char uid[16];