commit | 653d588e32264f63108961e88deff07bae129603 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Thu Jan 27 23:24:32 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jan 27 23:24:32 2022 +0000 |
tree | 804d11c5da9e7ddb7252b350ed8c8ae8bc5e65b8 | |
parent | 99684613d99363eb0d16a78251d2bca2923c2a1d [diff] | |
parent | b222bd47a3f817a5ce416042f1e4d1addf9a9fc8 [diff] |
Merge "Remove early break for sub-HAL initialization failure" am: 6e503b7a4e am: fa9af8de75 am: 0774f2b58e am: b222bd47a3 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1961241 Change-Id: I4baa7f43717bbb84cdee578dcd510b97efcd5e5e
diff --git a/sensors/common/default/2.X/multihal/HalProxy.cpp b/sensors/common/default/2.X/multihal/HalProxy.cpp index 73b0594..f44f5c4 100644 --- a/sensors/common/default/2.X/multihal/HalProxy.cpp +++ b/sensors/common/default/2.X/multihal/HalProxy.cpp
@@ -261,8 +261,8 @@ Result currRes = mSubHalList[i]->initialize(this, this, i); if (currRes != Result::OK) { result = currRes; - ALOGE("Subhal '%s' failed to initialize.", mSubHalList[i]->getName().c_str()); - break; + ALOGE("Subhal '%s' failed to initialize with reason %" PRId32 ".", + mSubHalList[i]->getName().c_str(), static_cast<int32_t>(currRes)); } }