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

Commit 78f46dd4 authored by Jack Yu's avatar Jack Yu Committed by Gerrit Code Review
Browse files

Merge "Improved data fail cause debug message"

parents 350433ed fcb5553d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1661,8 +1661,8 @@ public final class DataFailCause {

    /** @hide */
    public static String toString(@DataFailureCause int dataFailCause) {
        int cause = getFailCause(dataFailCause);
        return (cause == UNKNOWN) ? "UNKNOWN(" + dataFailCause + ")" : sFailCauseMap.get(cause);
        return sFailCauseMap.getOrDefault(dataFailCause, "UNKNOWN") + "(0x"
                + Integer.toHexString(dataFailCause) + ")";
    }

    /** @hide */
+1 −1
Original line number Diff line number Diff line
@@ -428,7 +428,7 @@ public final class DataCallResponse implements Parcelable {
    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("DataCallResponse: {")
           .append(" cause=").append(mCause)
           .append(" cause=").append(DataFailCause.toString(mCause))
           .append(" retry=").append(mSuggestedRetryTime)
           .append(" cid=").append(mId)
           .append(" linkStatus=").append(mLinkStatus)