From 217d8e69dcdb217b331fa46e3650924e774a5ac7 Mon Sep 17 00:00:00 2001 From: Vishnu Nair Date: Wed, 12 Sep 2018 16:34:49 -0700 Subject: SF: Fix incorrect LayerState logs Bug: 115559277 Test: logcat Change-Id: If924c60298a0d8fc433d45cdb71d229b57227385 --- libs/gui/LayerState.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libs/gui/LayerState.cpp') diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index deb8ea8f7e..5a8d8dbc81 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +#define LOG_TAG "LayerState" + #include #include #include @@ -313,8 +315,10 @@ void layer_state_t::merge(const layer_state_t& other) { sidebandStream = other.sidebandStream; } - if (other.what != what) { - ALOGE("Unmerged SurfaceComposer Transaction properties. LayerState::merge needs updating?"); + if ((other.what & what) != other.what) { + ALOGE("Unmerged SurfaceComposer Transaction properties. LayerState::merge needs updating? " + "other.what=0x%X what=0x%X", + other.what, what); } } -- cgit v1.2.3-59-g8ed1b