diff options
author | Vikas batchu <quic_vikabatc@quicinc.com> | 2022-08-02 00:18:24 +0530 |
---|---|---|
committer | Vikas batchu <quic_vikabatc@quicinc.com> | 2022-08-04 17:03:29 +0530 |
commit | e0205383ef8eb4471f23df833e330f96b024d414 (patch) | |
tree | e526959fdf91e1583f2cc6668acb18ddb5feb225 | |
parent | 1d3fbf542c1afd13ce878949d452a0349e41d781 (diff) |
composer: Mask errors for doze support query on invalid display
-- Race condition can arise during disconnect, leading to client
setting power mode on display getting disconnected
Change-Id: I09108be25cf77ce2e7da52e951cb922a16342de1
-rw-r--r-- | composer/hwc_session.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/composer/hwc_session.cpp b/composer/hwc_session.cpp index 9c01d444..a4705d0f 100644 --- a/composer/hwc_session.cpp +++ b/composer/hwc_session.cpp @@ -1290,7 +1290,7 @@ int32_t HWCSession::SetPowerMode(hwc2_display_t display, int32_t int_mode) { int support = 0; auto status = GetDozeSupport(display, &support); if (status != HWC2_ERROR_NONE) { - DLOGE("Failed to get doze support Error = %d", status); + DLOGW("Failed to get doze support Error = %d", status); return INT32(status); } @@ -1387,7 +1387,7 @@ int32_t HWCSession::GetDozeSupport(hwc2_display_t display, int32_t *out_support) if (display >= HWCCallbacks::kNumDisplays || (hwc_display_[display] == nullptr)) { // display may come as -1 from VTS test case - DLOGE("Invalid Display %d ", UINT32(display)); + DLOGW("Invalid Display %d ", UINT32(display)); return HWC2_ERROR_BAD_DISPLAY; } |