gsm48: move to hex TMSI representation

Signed-off-by: Vadim Yanitskiy <axilirator@gmail.com>
This commit is contained in:
Vadim Yanitskiy 2016-03-16 21:12:22 +06:00 committed by Harald Welte
parent 03309b57e8
commit f451ce66eb
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ int gsm48_mi_to_string(char *string, const int str_len, const uint8_t *mi,
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, "%u", tmsi);
return snprintf(string, str_len, "0x%08x", tmsi);
}
break;
case GSM_MI_TYPE_IMSI: