Don't crash ConnectivityService#dump
Fixes: 255726704
Test: FrameworksNetTests
Change-Id: Ibc10f00649a56054c8d548f1883c1f28e9878582
diff --git a/service/src/com/android/server/connectivity/ClatCoordinator.java b/service/src/com/android/server/connectivity/ClatCoordinator.java
index 42b3827..5d04632 100644
--- a/service/src/com/android/server/connectivity/ClatCoordinator.java
+++ b/service/src/com/android/server/connectivity/ClatCoordinator.java
@@ -899,7 +899,7 @@
}
/**
- * Dump the cordinator information.
+ * Dump the coordinator information.
*
* @param pw print writer.
*/
@@ -907,7 +907,7 @@
// TODO: move map dump to a global place to avoid duplicate dump while there are two or
// more IPv6 only networks.
if (isStarted()) {
- pw.println("CLAT tracker: " + mClatdTracker.toString());
+ pw.println("CLAT tracker: " + mClatdTracker);
pw.println("Forwarding rules:");
pw.increaseIndent();
dumpBpfIngress(pw);