summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author Glenn Kasten <gkasten@google.com> 2012-02-29 14:59:08 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2012-02-29 14:59:08 -0800
commitf79760b4aa83913e37a538a2a0a42d34a9dcf2b8 (patch)
tree8184e65e45a2f4fa70541fdef6213eef9c40651d /libs
parentdef33d23bc09b94452b8c3a88f5527c7bfd53dda (diff)
parent86e3362f1589eda1b1604f9d0fa31b3a78ef8aec (diff)
Merge "Shorten thread names"
Diffstat (limited to 'libs')
-rw-r--r--libs/binder/ProcessState.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp
index f96fe50e03f3..9fa412ca1f8b 100644
--- a/libs/binder/ProcessState.cpp
+++ b/libs/binder/ProcessState.cpp
@@ -286,8 +286,8 @@ void ProcessState::spawnPooledThread(bool isMain)
{
if (mThreadPoolStarted) {
int32_t s = android_atomic_add(1, &mThreadPoolSeq);
- char buf[32];
- sprintf(buf, "Binder Thread #%d", s);
+ char buf[16];
+ snprintf(buf, sizeof(buf), "Binder_%X", s);
ALOGV("Spawning new pooled thread, name=%s\n", buf);
sp<Thread> t = new PoolThread(isMain);
t->run(buf);