Remove liblog usage in MQDescriptor.h
Also remove hidl_log_base class since static methods
in child classes will not be able to invoke
logAlwaysFatal().
Bug: 36070915
Test: hidl_test passes.
Change-Id: I90e8982698920e6710f7bc8e533e4eccdf3a35c7
diff --git a/base/include/hidl/HidlSupport.h b/base/include/hidl/HidlSupport.h
index f2e1265..f6ce09b 100644
--- a/base/include/hidl/HidlSupport.h
+++ b/base/include/hidl/HidlSupport.h
@@ -288,7 +288,7 @@
////////////////////////////////////////////////////////////////////////////////
template<typename T>
-struct hidl_vec : private details::hidl_log_base {
+struct hidl_vec {
hidl_vec()
: mBuffer(NULL),
mSize(0),
@@ -308,7 +308,7 @@
hidl_vec(const std::initializer_list<T> list)
: mOwnsBuffer(true) {
if (list.size() > UINT32_MAX) {
- logAlwaysFatal("hidl_vec can't hold more than 2^32 elements.");
+ details::logAlwaysFatal("hidl_vec can't hold more than 2^32 elements.");
}
mSize = static_cast<uint32_t>(list.size());
mBuffer = new T[mSize];
@@ -339,7 +339,7 @@
}
mBuffer = data;
if (size > UINT32_MAX) {
- logAlwaysFatal("external vector size exceeds 2^32 elements.");
+ details::logAlwaysFatal("external vector size exceeds 2^32 elements.");
}
mSize = static_cast<uint32_t>(size);
mOwnsBuffer = shouldOwn;
@@ -433,7 +433,7 @@
void resize(size_t size) {
if (size > UINT32_MAX) {
- logAlwaysFatal("hidl_vec can't hold more than 2^32 elements.");
+ details::logAlwaysFatal("hidl_vec can't hold more than 2^32 elements.");
}
T *newBuffer = new T[size];