Pass -n to netstat.
netstat does lots of DNS lookups, which will slow down the dump
process and creates the risk that the dump will be incomplete.
Bug: 26154009
Change-Id: Ibefa259bf74e85ab8dbdfac76f82c101d47686a7
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 458ed3e..c93d0e5 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -606,7 +606,7 @@
run_command("LIBRANK", 10, SU_PATH, "root", "librank", NULL);
run_command("PRINTENV", 10, "printenv", NULL);
- run_command("NETSTAT", 10, "netstat", NULL);
+ run_command("NETSTAT", 10, "netstat", "-n", NULL);
run_command("LSMOD", 10, "lsmod", NULL);
do_dmesg();