Merge "Logd: Fix wrong parameters" am: 913ad12543 am: 0daaa5aec8

am: a8fbb17d2d

Change-Id: Ib3099519c8387e47591037ff9e09f253ca25667f
This commit is contained in:
Andreas Gampe 2017-03-15 15:53:44 +00:00 committed by android-build-merger
commit 401a19845c

View file

@ -754,7 +754,7 @@ int LogKlog::log(const char* buf, size_t len) {
// eg: [143:healthd]healthd -> [143:healthd]
taglen = etag - tag;
// Mediatek-special printk induced stutter
const char* mp = strnrchr(tag, ']', taglen);
const char* mp = strnrchr(tag, taglen, ']');
if (mp && (++mp < etag)) {
size_t s = etag - mp;
if (((s + s) < taglen) && !fastcmp<memcmp>(mp, mp - 1 - s, s)) {