Merge "Fix debugging on dalvik."
diff --git a/vm/native/dalvik_system_ZygoteHooks.cpp b/vm/native/dalvik_system_ZygoteHooks.cpp
index 0ede69d..717803d 100644
--- a/vm/native/dalvik_system_ZygoteHooks.cpp
+++ b/vm/native/dalvik_system_ZygoteHooks.cpp
@@ -59,8 +59,6 @@
*/
static void enableDebugFeatures(u4 debugFlags)
{
- ALOGV("debugFlags is 0x%02x", debugFlags);
-
gDvm.jdwpAllowed = ((debugFlags & DEBUG_ENABLE_DEBUGGER) != 0);
if ((debugFlags & DEBUG_ENABLE_CHECKJNI) != 0) {
@@ -145,7 +143,7 @@
thread->systemTid = dvmGetSysThreadId();
/* configure additional debug options */
- enableDebugFeatures(args[1]);
+ enableDebugFeatures(args[2]);
gDvm.zygote = false;
if (!dvmInitAfterZygote()) {