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

Commit 7f1304ae authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Enable liblog_stub to work with variable tags

This was liblog_stub limitation not present in liblog.

Bug: 285204695
Test: m libbinder_sdk
Change-Id: If15321783bb7b58749a62c9091fe6b1774cd4cc9
parent e33f7da5
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -60,8 +60,8 @@ int __android_log_print(int prio, const char* tag, const char* fmt, ...)
            std::fprintf(stderr, fmt __VA_OPT__(, ) __VA_ARGS__);            \
        }                                                                    \
        IF_ALOG(priority, tag) {                                             \
            __android_log_print(ANDROID_##priority, tag,                       \
                                tag ": " fmt "\n" __VA_OPT__(, ) __VA_ARGS__); \
            __android_log_print(ANDROID_##priority, tag, "%s: " fmt "\n",    \
                                (tag)__VA_OPT__(, ) __VA_ARGS__);            \
        }                                                                    \
        if constexpr (ANDROID_##priority == ANDROID_LOG_FATAL) std::abort(); \
    } while (false)