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

Commit 476e546b authored by Nick Chalko's avatar Nick Chalko Committed by shubang
Browse files

Use : hex format for HdmiCecMessage.toString

ag/5340977

This format is used by both cec-client and www.cec-o-matic.com

Bug:117991662
Test: m -j; flashall; adb shell dumpsys hdmi_control
Change-Id: Icaf172a54eb776ca848d16f5e8384f17ae236207
parent b9e48e2f
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -112,12 +112,11 @@ public final class HdmiCecMessage {
    @Override
    public String toString() {
        StringBuffer s = new StringBuffer();
        s.append(String.format("<%s> src: %d, dst: %d",
                opcodeToString(mOpcode), mSource, mDestination));
        s.append(String.format("<%s> %X%X:%02X",
                opcodeToString(mOpcode), mSource, mDestination, mOpcode));
        if (mParams.length > 0) {
            s.append(", params:");
            for (byte data : mParams) {
                s.append(String.format(" %02X", data));
                s.append(String.format(":%02X", data));
            }
        }
        return s.toString();