summaryrefslogtreecommitdiffstats
path: root/src/gsm
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-06-18 14:05:24 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-06-23 10:21:54 +0200
commit4573502a1c0c84949d7195a9ea3ee8996bb29c0f (patch)
tree01a61b7d76e5d90b2d6b779764e60de37daf91be /src/gsm
parentc977984ecd856f8f35fe3b75dff3298aaf7e2067 (diff)
Fix compilation warnings: use correct log type for uint32_t
Change-Id: Ic1e3255800999669ca9619bfceb4124c773eff2d
Diffstat (limited to 'src/gsm')
-rw-r--r--src/gsm/gsm48.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gsm/gsm48.c b/src/gsm/gsm48.c
index f69eee20..10e2b804 100644
--- a/src/gsm/gsm48.c
+++ b/src/gsm/gsm48.c
@@ -27,6 +27,7 @@
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
+#include <inttypes.h>
#include <osmocom/core/utils.h>
#include <osmocom/core/byteswap.h>
@@ -637,7 +638,7 @@ int gsm48_mi_to_string(char *string, const int str_len, const uint8_t *mi,
/* Table 10.5.4.3, reverse generate_mid_from_tmsi */
if (mi_len == GSM48_TMSI_LEN && mi[0] == (0xf0 | GSM_MI_TYPE_TMSI)) {
tmsi = osmo_load32be(&mi[1]);
- return snprintf(string, str_len, "%u", tmsi);
+ return snprintf(string, str_len, "%"PRIu32, tmsi);
}
break;
case GSM_MI_TYPE_IMSI: