From a43ee156098776698a39882bb00ecebc555948d0 Mon Sep 17 00:00:00 2001 From: liangweikang Date: Tue, 25 Oct 2016 16:37:54 +0800 Subject: binder: print the bad cmd error to android log https://code.google.com/p/android/issues/detail?id=226068 Signed-off-by: liangweikang --- libs/binder/IPCThreadState.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/binder/IPCThreadState.cpp') diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index c9f688fcce..02b4232257 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -666,7 +666,7 @@ status_t IPCThreadState::attemptIncStrongHandle(int32_t handle) waitForResponse(NULL, &result); #if LOG_REFCOUNTS - printf("IPCThreadState::attemptIncStrongHandle(%ld) = %s\n", + ALOGV("IPCThreadState::attemptIncStrongHandle(%ld) = %s\n", handle, result == NO_ERROR ? "SUCCESS" : "FAILURE"); #endif @@ -681,7 +681,7 @@ status_t IPCThreadState::attemptIncStrongHandle(int32_t handle) void IPCThreadState::expungeHandle(int32_t handle, IBinder* binder) { #if LOG_REFCOUNTS - printf("IPCThreadState::expungeHandle(%ld)\n", handle); + ALOGV("IPCThreadState::expungeHandle(%ld)\n", handle); #endif self()->mProcess->expungeHandle(handle, binder); } @@ -1168,7 +1168,7 @@ status_t IPCThreadState::executeCommand(int32_t cmd) break; default: - printf("*** BAD COMMAND %d received from Binder driver\n", cmd); + ALOGE("*** BAD COMMAND %d received from Binder driver\n", cmd); result = UNKNOWN_ERROR; break; } -- cgit v1.2.3-59-g8ed1b