Merge "Improved data fail cause debug message" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e821fd3069
@@ -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 */
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user