Loading libs/binder/RpcTransportTls.cpp +1 −8 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ #include "FdTrigger.h" #include "RpcState.h" #include "Utils.h" #define SHOULD_LOG_TLS_DETAIL false Loading @@ -35,14 +36,6 @@ #define LOG_TLS_DETAIL(...) ALOGV(__VA_ARGS__) // for type checking #endif #define TEST_AND_RETURN(value, expr) \ do { \ if (!(expr)) { \ ALOGE("Failed to call: %s", #expr); \ return value; \ } \ } while (0) using android::base::ErrnoError; using android::base::Error; using android::base::Result; Loading libs/binder/Utils.h +9 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,15 @@ #include <android-base/result.h> #include <android-base/unique_fd.h> #include <log/log.h> #define TEST_AND_RETURN(value, expr) \ do { \ if (!(expr)) { \ ALOGE("Failed to call: %s", #expr); \ return value; \ } \ } while (0) namespace android { Loading Loading
libs/binder/RpcTransportTls.cpp +1 −8 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ #include "FdTrigger.h" #include "RpcState.h" #include "Utils.h" #define SHOULD_LOG_TLS_DETAIL false Loading @@ -35,14 +36,6 @@ #define LOG_TLS_DETAIL(...) ALOGV(__VA_ARGS__) // for type checking #endif #define TEST_AND_RETURN(value, expr) \ do { \ if (!(expr)) { \ ALOGE("Failed to call: %s", #expr); \ return value; \ } \ } while (0) using android::base::ErrnoError; using android::base::Error; using android::base::Result; Loading
libs/binder/Utils.h +9 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,15 @@ #include <android-base/result.h> #include <android-base/unique_fd.h> #include <log/log.h> #define TEST_AND_RETURN(value, expr) \ do { \ if (!(expr)) { \ ALOGE("Failed to call: %s", #expr); \ return value; \ } \ } while (0) namespace android { Loading