Message ID | gerrit.1463772087388.I2f61e626f2f9088b492e1b643c3dcc9bce77d52b@gerrit.osmocom.org |
---|---|
State | New |
Headers | show |
Holger Freyther has reverted this change. Change subject: Revert "gsm48: move to hex TMSI representation" ...................................................................... Uploaded patch set 1.
Patch Set 2: Code-Review+2
diff --git a/src/gsm/gsm48.c b/src/gsm/gsm48.c index d0e050b..8a46f76 100644 --- a/src/gsm/gsm48.c +++ b/src/gsm/gsm48.c @@ -458,10 +458,11 @@ case GSM_MI_TYPE_NONE: break; case GSM_MI_TYPE_TMSI: + /* Table 10.5.4.3, reverse generate_mid_from_tmsi */ if (mi_len == GSM48_TMSI_LEN && mi[0] == (0xf0 | GSM_MI_TYPE_TMSI)) { memcpy(&tmsi, &mi[1], 4); tmsi = ntohl(tmsi); - return snprintf(string, str_len, "0x%08X", tmsi); + return snprintf(string, str_len, "%u", tmsi); } break; case GSM_MI_TYPE_IMSI: