summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-10-30 16:17:49 -0700
committerElliott Hughes <enh@google.com>2015-10-30 16:17:49 -0700
commita3533a3ae6bf8d0e1780c153cafdec86926ec22c (patch)
treede7a289b2ef89970cb3d1f4f7255c983a17d4d2d
parent71b70a244c56719d30654b7123a944d971eb8d02 (diff)
downloadnative-a3533a3ae6bf8d0e1780c153cafdec86926ec22c.tar.gz
Reduce duplication in bugreport ps output.
PROCESSES AND THREADS and PROCESSES (SELINUX LABELS) can be combined. I suspect we can just remove PROCESSES too, since it's a strict subset of the other information, but one step at a time. (The worry is that someone's actually parsing this output, but it would be good to find out who's doing that as soon as possible so we can work with them as we transition to a more complete ps implementation.) Change-Id: I5f1085f8853f7a988f7edcaeefdd7b63175c1473
-rw-r--r--cmds/dumpstate/dumpstate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index 604d5128e0..ab2376b221 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -314,8 +314,7 @@ static void dumpstate() {
dump_file("KERNEL SYNC", "/d/sync");
run_command("PROCESSES", 10, "ps", "-P", NULL);
- run_command("PROCESSES AND THREADS", 10, "ps", "-t", "-p", "-P", NULL);
- run_command("PROCESSES (SELINUX LABELS)", 10, "ps", "-Z", NULL);
+ run_command("PROCESSES AND THREADS", 10, "ps", "-Z", "-t", "-p", "-P", NULL);
run_command("LIBRANK", 10, "librank", NULL);
do_dmesg();