aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_rlcmac.cpp
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2020-08-21 15:44:58 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2020-08-21 16:40:14 +0200
commit0052051c07af63da98137c9f8e3b3119642eb587 (patch)
tree2364f800198176b6130aa22af0b8e7cd5c30d24c /src/gprs_rlcmac.cpp
parentb75c27febdfaf1020f4a55d55646ec5c10b2050a (diff)
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
Diffstat (limited to 'src/gprs_rlcmac.cpp')
-rw-r--r--src/gprs_rlcmac.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gprs_rlcmac.cpp b/src/gprs_rlcmac.cpp
index c8900214..879ea85d 100644
--- a/src/gprs_rlcmac.cpp
+++ b/src/gprs_rlcmac.cpp
@@ -34,8 +34,13 @@ extern void *tall_pcu_ctx;
int gprs_rlcmac_paging_request(const uint8_t *mi, uint8_t mi_len, uint16_t pgroup)
{
- LOGP(DRLCMAC, LOGL_NOTICE, "TX: [PCU -> BTS] Paging Request (CCCH) MI=%s\n",
- osmo_mi_name(mi, mi_len));
+ if (log_check_level(DRLCMAC, LOGL_NOTICE)) {
+ struct osmo_mobile_identity omi = {};
+ char str[64];
+ osmo_mobile_identity_decode(&omi, mi, mi_len, true);
+ osmo_mobile_identity_to_str_buf(str, sizeof(str), &omi);
+ LOGP(DRLCMAC, LOGL_NOTICE, "TX: [PCU -> BTS] Paging Request (CCCH) MI=%s\n", str);
+ }
bitvec *paging_request = bitvec_alloc(22, tall_pcu_ctx);
bitvec_unhex(paging_request, DUMMY_VEC);
int plen = Encoding::write_paging_request(paging_request, mi, mi_len);