gsm48: move to hex TMSI representation
diff mbox

Message ID 1458141142-8157-1-git-send-email-axilirator@gmail.com
State New
Headers show

Commit Message

Vadim Yanitskiy March 16, 2016, 3:12 p.m. UTC
From: Vadim Yanitskiy <axilirator@gmail.com>

Signed-off-by: Vadim Yanitskiy <axilirator@gmail.com>
---
 src/gsm/gsm48.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox

diff --git a/src/gsm/gsm48.c b/src/gsm/gsm48.c
index d0a2286..e4a98d6 100644
--- a/src/gsm/gsm48.c
+++ b/src/gsm/gsm48.c
@@ -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: