summaryrefslogtreecommitdiffstats
path: root/vm/Misc.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-06-07 16:39:20 -0700
committerElliott Hughes <enh@google.com>2011-06-07 16:39:20 -0700
commit708f143f318bb2167c810f9506102f4ad656545c (patch)
tree97e9b578ea7175f56a335cad1548bbf4ef0d0fbb /vm/Misc.h
parenta0f945f21dd38df48946fcea57d798a9692734b8 (diff)
downloadandroid_dalvik-708f143f318bb2167c810f9506102f4ad656545c.tar.gz
android_dalvik-708f143f318bb2167c810f9506102f4ad656545c.tar.bz2
android_dalvik-708f143f318bb2167c810f9506102f4ad656545c.zip
Improve "waiting on"/"waiting to lock" SIGQUIT dump info.
In particular, when we're waiting on a Class, say which class: I(16573) - waiting on <0xf5ed54f8> (java.lang.Class<java.lang.ref.ReferenceQueue>) versus: I(16573) - waiting on <0xf5feda38> (a java.util.LinkedList) Bug: http://code.google.com/p/android/issues/detail?id=17349 Change-Id: I844d02c008b1499adb02995ff3da25ba8cad0e0a
Diffstat (limited to 'vm/Misc.h')
-rw-r--r--vm/Misc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/vm/Misc.h b/vm/Misc.h
index aabddfb99..017548d70 100644
--- a/vm/Misc.h
+++ b/vm/Misc.h
@@ -22,6 +22,7 @@
#include <string>
+#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/time.h>
@@ -303,4 +304,9 @@ bool dvmGetThreadStats(ProcStatData* pData, pid_t tid);
*/
const char* dvmPathToAbsolutePortion(const char* path);
+/**
+ * Returns a string corresponding to printf-like formatting of the arguments.
+ */
+std::string dvmStringPrintf(const char* fmt, ...) __attribute__((__format__ (__printf__, 1, 2)));
+
#endif /*_DALVIK_MISC*/