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

Commit 52f7b149 authored by Andrei Homescu's avatar Andrei Homescu
Browse files

libbinder: Add __assert in Trusty

Delegate code calls the __assert macro which was
not defined on Trusty, causing the default implementation
based on syslog to be used. This provides a Trusty-specific
__assert implementation that uses Trusty logging APIs.

Bug: 230135749
Test: build.py on Trusty
Change-Id: Ic256a1a26a046cb697479e2328312972edbad4a6
parent 6df92f08
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -120,3 +120,7 @@ static inline void __ignore_va_args__(...) {}
    do {                                                                 \
        TLOGE("android_errorWriteLog: tag:%x subTag:%s\n", tag, subTag); \
    } while (0)

extern "C" inline void __assert(const char* file, int line, const char* str) {
    LOG_ALWAYS_FATAL("%s:%d: assertion \"%s\" failed", file, line, str);
}