From 1afec3db700268cdc25566b4ab04735fe643a4db Mon Sep 17 00:00:00 2001 From: Prabhanjan Kandula Date: Wed, 9 Nov 2016 18:39:41 -0800 Subject: [PATCH] qdutils: Conditionally mute pu control error log If display.qservice dies all the pending binders would timeout. Mute error logging from binder wrapper and return the error value to client. Change-Id: I91daea0e9068088104bc3c40d67f6c9553673832 CRs-fixed: 1086061 --- libqdutils/display_config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libqdutils/display_config.cpp b/libqdutils/display_config.cpp index c1335b1d..4880cdcb 100644 --- a/libqdutils/display_config.cpp +++ b/libqdutils/display_config.cpp @@ -357,7 +357,7 @@ extern "C" int controlPartialUpdate(int dpy, int mode) { inParcel.writeInt32(mode); err = binder->dispatch(IQService::CONTROL_PARTIAL_UPDATE, &inParcel, &outParcel); if(err != 0) { - ALOGE("%s() failed with err %d", __FUNCTION__, err); + ALOGE_IF(getBinder(), "%s() failed with err %d", __FUNCTION__, err); } else { return outParcel.readInt32(); }