diff options
author | Elliott Hughes <enh@google.com> | 2011-06-17 13:55:27 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-06-17 13:55:27 -0700 |
commit | 837eabb829417c1542037423c55536649de404b8 (patch) | |
tree | e05d7410a3f2e4bc66d53cb9359c5d967e21f8bd /vm/interp | |
parent | e88cce67ddb18f2dc5a7f7ee1883e79e8830fac6 (diff) | |
download | android_dalvik-837eabb829417c1542037423c55536649de404b8.tar.gz android_dalvik-837eabb829417c1542037423c55536649de404b8.tar.bz2 android_dalvik-837eabb829417c1542037423c55536649de404b8.zip |
Add and use StringAppendF.
I've also removed the dvm prefix from the existing StringPrintf.
Change-Id: I3d01f676c876957b6c6e032c674e1a06c3670021
Diffstat (limited to 'vm/interp')
-rw-r--r-- | vm/interp/Stack.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/interp/Stack.cpp b/vm/interp/Stack.cpp index 98c209baf..db1bd8981 100644 --- a/vm/interp/Stack.cpp +++ b/vm/interp/Stack.cpp @@ -1159,7 +1159,7 @@ static bool extractMonitorEnterObject(Thread* thread, Object** pLockObj, static void printWaitMessage(const DebugOutputTarget* target, const char* detail, Object* obj, Thread* thread) { - std::string msg(dvmStringPrintf(" - waiting %s <%p> ", detail, obj)); + std::string msg(StringPrintf(" - waiting %s <%p> ", detail, obj)); if (obj->clazz != gDvm.classJavaLangClass) { // I(16573) - waiting on <0xf5feda38> (a java.util.LinkedList) @@ -1169,7 +1169,7 @@ static void printWaitMessage(const DebugOutputTarget* target, const char* detail if (thread != NULL) { std::string threadName(dvmGetThreadName(thread)); - msg += dvmStringPrintf(" held by tid=%d (%s)", thread->threadId, threadName.c_str()); + StringAppendF(&msg, " held by tid=%d (%s)", thread->threadId, threadName.c_str()); } dvmPrintDebugMessage(target, "%s\n", msg.c_str()); |