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

Commit 0daaa5ae authored by Andreas Gampe's avatar Andreas Gampe Committed by android-build-merger
Browse files

Merge "Logd: Fix wrong parameters"

am: 913ad125

Change-Id: I4046e79b452c4be8dc75e774aa7bb9264c602b10
parents 591b0965 913ad125
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -754,7 +754,7 @@ int LogKlog::log(const char* buf, size_t len) {
    //   eg: [143:healthd]healthd -> [143:healthd]
    //   eg: [143:healthd]healthd -> [143:healthd]
    taglen = etag - tag;
    taglen = etag - tag;
    // Mediatek-special printk induced stutter
    // Mediatek-special printk induced stutter
    const char* mp = strnrchr(tag, ']', taglen);
    const char* mp = strnrchr(tag, taglen, ']');
    if (mp && (++mp < etag)) {
    if (mp && (++mp < etag)) {
        size_t s = etag - mp;
        size_t s = etag - mp;
        if (((s + s) < taglen) && !fastcmp<memcmp>(mp, mp - 1 - s, s)) {
        if (((s + s) < taglen) && !fastcmp<memcmp>(mp, mp - 1 - s, s)) {