Fix issue #7503920: Log spew from vold
Change-Id: Ibfa5b979014f433085b94aab0d3d81bf9269d4b5
diff --git a/CommandListener.cpp b/CommandListener.cpp
index 461103e..3b5d2bf 100644
--- a/CommandListener.cpp
+++ b/CommandListener.cpp
@@ -39,6 +39,8 @@
#include "Devmapper.h"
#include "cryptfs.h"
+#define DUMP_ARGS 0
+
CommandListener::CommandListener() :
FrameworkListener("vold", true) {
registerCmd(new DumpCmd());
@@ -51,6 +53,7 @@
}
void CommandListener::dumpArgs(int argc, char **argv, int argObscure) {
+#if DUMP_ARGS
char buffer[4096];
char *p = buffer;
@@ -76,6 +79,7 @@
}
}
SLOGD("%s", buffer);
+#endif
}
CommandListener::DumpCmd::DumpCmd() :