Merge "Simplify code" am: 2a1c0dd6df
am: 9d76ebd7d4
Change-Id: I7e6524081a7d0513ff2e3fe8150b758ad31b1acf
This commit is contained in:
commit
483258c650
1 changed files with 4 additions and 2 deletions
|
|
@ -1632,8 +1632,10 @@ LIBLOG_ABI_PUBLIC char* android_log_formatLogLine(AndroidLogFormat* p_format,
|
|||
prefixLen = snprintf(prefixBuf, sizeof(prefixBuf), "\x1B[38;5;%dm",
|
||||
colorFromPri(entry->priority));
|
||||
prefixLen = MIN(prefixLen, sizeof(prefixBuf));
|
||||
suffixLen = snprintf(suffixBuf, sizeof(suffixBuf), "\x1B[0m");
|
||||
suffixLen = MIN(suffixLen, sizeof(suffixBuf));
|
||||
|
||||
const char suffixContents[] = "\x1B[0m";
|
||||
strcpy(suffixBuf, suffixContents);
|
||||
suffixLen = strlen(suffixContents);
|
||||
}
|
||||
|
||||
char uid[16];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue