Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d76ebd7 authored by George Burgess IV's avatar George Burgess IV Committed by android-build-merger
Browse files

Merge "Simplify code"

am: 2a1c0dd6

Change-Id: I5bf0d9b562048887be0f01ee3b5ecff4fa8312ba
parents 85a30030 2a1c0dd6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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];