[Thread] use toHexString for toString()
dumpHexString will create additional representations other than a HEX string, it's suitable for raw logging message but not in a Object#toString. Change-Id: I184eb10bafa2db1103a4ef5cf82250db52aec278
This commit is contained in:
parent
af2fc56698
commit
21e5d68f74
1 changed files with 3 additions and 3 deletions
|
|
@ -18,7 +18,7 @@ package android.net.thread;
|
|||
|
||||
import static com.android.internal.util.Preconditions.checkArgument;
|
||||
import static com.android.internal.util.Preconditions.checkState;
|
||||
import static com.android.net.module.util.HexDump.dumpHexString;
|
||||
import static com.android.net.module.util.HexDump.toHexString;
|
||||
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
import static java.util.Objects.requireNonNull;
|
||||
|
|
@ -610,7 +610,7 @@ public final class ActiveOperationalDataset implements Parcelable {
|
|||
sb.append("{networkName=")
|
||||
.append(getNetworkName())
|
||||
.append(", extendedPanId=")
|
||||
.append(dumpHexString(getExtendedPanId()))
|
||||
.append(toHexString(getExtendedPanId()))
|
||||
.append(", panId=")
|
||||
.append(getPanId())
|
||||
.append(", channel=")
|
||||
|
|
@ -1109,7 +1109,7 @@ public final class ActiveOperationalDataset implements Parcelable {
|
|||
sb.append("{rotation=")
|
||||
.append(mRotationTimeHours)
|
||||
.append(", flags=")
|
||||
.append(dumpHexString(mFlags))
|
||||
.append(toHexString(mFlags))
|
||||
.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue