use new osmo_mobile_identity api (avoid deprecation)
Note: subsequent patch Iad845acb0096b75dc453105c9c16b2252879b4ca will change to
passing a struct osmo_mobile_identity in the Paging code path, instead of
passing the encoded IE data.
Change-Id: Ibb03b8e601160427944f434761ca59811d1fc12f
diff --git a/src/pdch.cpp b/src/pdch.cpp
index b34f532..af84724 100644
--- a/src/pdch.cpp
+++ b/src/pdch.cpp
@@ -205,8 +205,13 @@
/* loop until message is full */
while (pag) {
- LOGP(DRLCMAC, LOGL_DEBUG, "Paging MI - %s\n",
- osmo_mi_name(pag->identity_lv + 1, pag->identity_lv[0]));
+ if (log_check_level(DRLCMAC, LOGL_DEBUG)) {
+ struct osmo_mobile_identity omi = {};
+ char str[64];
+ osmo_mobile_identity_decode(&omi, pag->identity_lv + 1, pag->identity_lv[0], true);
+ osmo_mobile_identity_to_str_buf(str, sizeof(str), &omi);
+ LOGP(DRLCMAC, LOGL_DEBUG, "Paging MI - %s\n", str);
+ }
/* try to add paging */
if ((pag->identity_lv[1] & GSM_MI_TYPE_MASK) == GSM_MI_TYPE_TMSI) {