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

Commit d0c54deb authored by Mark Salyzyn's avatar Mark Salyzyn Committed by Android Git Automerger
Browse files

am 8a2f02ba: am f4697688: am bd4f52b2: Merge "liblog: optimize code hotspot"

* commit '8a2f02ba':
  liblog: optimize code hotspot
parents 4a6f04d3 8a2f02ba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ static int __android_log_level(const char *tag, int def)
    if (taglen) {
        uint32_t current_local_serial = current_global_serial;

        if (!last_tag || strcmp(last_tag, tag)) {
        if (!last_tag || (last_tag[0] != tag[0]) || strcmp(last_tag + 1, tag + 1)) {
            /* invalidate log.tag.<tag> cache */
            for(i = 0; i < (sizeof(tag_cache) / sizeof(tag_cache[0])); ++i) {
                tag_cache[i].pinfo = NULL;