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

Commit 84dcf091 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Collapse IMS tags into a prefix check.

Bug: 6497974
Change-Id: I7fba1a07e2552ce16131b81f30d18eb3192de7ef
parent 9a7b9aab
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -141,14 +141,13 @@ int __android_log_write(int prio, const char *tag, const char *msg)
    /* XXX: This needs to go! */
    if (!strcmp(tag, "HTC_RIL") ||
        !strncmp(tag, "RIL", 3) || /* Any log tag with "RIL" as the prefix */
        !strncmp(tag, "IMS", 3) || /* Any log tag with "IMS" as the prefix */
        !strcmp(tag, "AT") ||
        !strcmp(tag, "GSM") ||
        !strcmp(tag, "STK") ||
        !strcmp(tag, "CDMA") ||
        !strcmp(tag, "PHONE") ||
        !strcmp(tag, "SMS") ||
        !strcmp(tag, "IMS") ||
        !strcmp(tag, "IMSFW"))
        !strcmp(tag, "SMS"))
            log_id = LOG_ID_RADIO;

    vec[0].iov_base   = (unsigned char *) &prio;
@@ -171,14 +170,13 @@ int __android_log_buf_write(int bufID, int prio, const char *tag, const char *ms
    /* XXX: This needs to go! */
    if (!strcmp(tag, "HTC_RIL") ||
        !strncmp(tag, "RIL", 3) || /* Any log tag with "RIL" as the prefix */
        !strncmp(tag, "IMS", 3) || /* Any log tag with "IMS" as the prefix */
        !strcmp(tag, "AT") ||
        !strcmp(tag, "GSM") ||
        !strcmp(tag, "STK") ||
        !strcmp(tag, "CDMA") ||
        !strcmp(tag, "PHONE") ||
        !strcmp(tag, "SMS") ||
        !strcmp(tag, "IMS") ||
        !strcmp(tag, "IMSFW"))
        !strcmp(tag, "SMS"))
            bufID = LOG_ID_RADIO;

    vec[0].iov_base   = (unsigned char *) &prio;