From 8d073840b1b5e9fad3117639820054c4f86684a6 Mon Sep 17 00:00:00 2001 From: Yixuan Wang Date: Wed, 26 Jan 2022 16:55:45 +0000 Subject: [PATCH] sm8150-common: sensors: Remove early break for sub-HAL initialization failure Bug: 212420575 Test: none Change-Id: I38099a4edbdeffe99ae2d91fc9dc518c9da98b13 --- sensors/HalProxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sensors/HalProxy.cpp b/sensors/HalProxy.cpp index f379c2f2..117921f2 100644 --- a/sensors/HalProxy.cpp +++ b/sensors/HalProxy.cpp @@ -263,8 +263,8 @@ Return HalProxy::initializeCommon( 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(currRes)); } }