summaryrefslogtreecommitdiff
path: root/libs/binder/Utils.cpp
diff options
context:
space:
mode:
author Tomasz Wasilczyk <twasilczyk@google.com> 2023-11-01 11:05:27 -0700
committer Tomasz Wasilczyk <twasilczyk@google.com> 2023-11-13 12:07:05 -0800
commite3de8800fa64073d5523b6024f039bc232c2b9d8 (patch)
treed7e3e07e5d3fee92c8a8e27c62b22f008b1e70ed /libs/binder/Utils.cpp
parent67d71c05524f7df2b2faf0ce4fee26d35749ecac (diff)
Migrate off of streaming logging
Bug: 302723053 Test: mma Change-Id: Idbd42915fb515021b3de5062fa1d1b55d5899583
Diffstat (limited to 'libs/binder/Utils.cpp')
-rw-r--r--libs/binder/Utils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/binder/Utils.cpp b/libs/binder/Utils.cpp
index 47fd17dcb1..d9a96af80a 100644
--- a/libs/binder/Utils.cpp
+++ b/libs/binder/Utils.cpp
@@ -16,7 +16,6 @@
#include "Utils.h"
-#include <android-base/logging.h>
#include <string.h>
namespace android {
@@ -26,7 +25,7 @@ void zeroMemory(uint8_t* data, size_t size) {
}
std::string HexString(const void* bytes, size_t len) {
- CHECK(bytes != nullptr || len == 0) << bytes << " " << len;
+ LOG_ALWAYS_FATAL_IF(len > 0 && bytes == nullptr, "%p %zu", bytes, len);
// b/132916539: Doing this the 'C way', std::setfill triggers ubsan implicit conversion
const uint8_t* bytes8 = static_cast<const uint8_t*>(bytes);