From a3206e690bcfe5c982a0d7fff7c845b83a3ed91f Mon Sep 17 00:00:00 2001 From: Wale Ogunwale Date: Tue, 21 Apr 2015 12:29:50 -0700 Subject: [PATCH] Fixed build error with clang/llvm. Change-Id: Ideacdc974ebad542df724464ccba9fcfb2b7ea91 --- libs/binder/IPCThreadState.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index 2baf474f3..ef88181d6 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -403,8 +403,9 @@ void IPCThreadState::blockUntilThreadAvailable() { pthread_mutex_lock(&mProcess->mThreadCountLock); while (mProcess->mExecutingThreadsCount >= mProcess->mMaxThreads) { - ALOGW("Waiting for thread to be free. mExecutingThreadsCount=%i mMaxThreads=%i\n", - mProcess->mExecutingThreadsCount, mProcess->mMaxThreads); + ALOGW("Waiting for thread to be free. mExecutingThreadsCount=%lu mMaxThreads=%lu\n", + static_cast(mProcess->mExecutingThreadsCount), + static_cast(mProcess->mMaxThreads)); pthread_cond_wait(&mProcess->mThreadCountDecrement, &mProcess->mThreadCountLock); } pthread_mutex_unlock(&mProcess->mThreadCountLock);