Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 230d5ca4 authored by Erik Kline's avatar Erik Kline
Browse files

Add the network handle to the NetworkAgentInfo#toString() output.

This will make it possible to find nethandles via, e.g.
 "dumpsys connectivity --short".

Without this, native multinetwork API debugging requires running
"dumpsys connectivity --diag" in order to see the nethandle values.

Bug: 19537384
Change-Id: Icdd2b112523d4ecf88d5339f229e714a56d248f8
parent 3b3e57ef
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -248,10 +248,10 @@ public class NetworkAgentInfo implements Comparable<NetworkAgentInfo> {
    }

    public String toString() {
        return "NetworkAgentInfo{ ni{" + networkInfo + "}  network{" +
                network + "}  lp{" +
                linkProperties + "}  nc{" +
                networkCapabilities + "}  Score{" + getCurrentScore() + "}  " +
        return "NetworkAgentInfo{ ni{" + networkInfo + "}  " +
                "network{" + network + "}  nethandle{" + network.getNetworkHandle() + "}  " +
                "lp{" + linkProperties + "}  " +
                "nc{" + networkCapabilities + "}  Score{" + getCurrentScore() + "}  " +
                "everValidated{" + everValidated + "}  lastValidated{" + lastValidated + "}  " +
                "created{" + created + "} lingering{" + lingering + "} " +
                "explicitlySelected{" + networkMisc.explicitlySelected + "} " +