Clat dump information improvement

This is a followup commit for aosp/2017317.

1. Reorder the NAT464 information in dumpsys connectivity
2. Reword message when clat not started

Bug: 212345928
Test: dumpsys connectivity
Change-Id: I31c7066787dc7db8e5fe225f3918368b25bb7f5e
This commit is contained in:
Hungming Chen 2022-05-18 22:36:20 +08:00 • committed by Nucca Chen
commit c6e00ea74e
2 changed files with 5 additions and 5 deletions

View file

@ -3428,6 +3428,10 @@ public class ConnectivityService extends IConnectivityManager.Stub
for (NetworkAgentInfo nai : networksSortedById()) {
pw.println(nai.toString());
pw.increaseIndent();
pw.println("Nat464Xlat:");
pw.increaseIndent();
nai.dumpNat464Xlat(pw);
pw.decreaseIndent();
pw.println(String.format(
"Requests: REQUEST:%d LISTEN:%d BACKGROUND_REQUEST:%d total:%d",
nai.numForegroundNetworkRequests(),
@ -3443,10 +3447,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
pw.increaseIndent();
nai.dumpInactivityTimers(pw);
pw.decreaseIndent();
pw.println("Nat464Xlat:");
pw.increaseIndent();
nai.dumpNat464Xlat(pw);
pw.decreaseIndent();
pw.decreaseIndent();
}
}

View file

@ -540,7 +540,7 @@ public class Nat464Xlat {
mClatCoordinator.dump(pw);
pw.decreaseIndent();
} else {
pw.println("<not start>");
pw.println("<not started>");
}
}
}