diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-05-04 12:34:12 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-05-04 13:09:01 +0200 |
commit | 26d0326157ca88abb3e7888b541c304b1d012648 (patch) | |
tree | 136839ffad2670ec9d9052144a06b97167c1714f /openbsc/src/libiu | |
parent | 885a11b33e79ee55e323eaf4bda975284a54d50d (diff) |
debug log tweaks for paging
Diffstat (limited to 'openbsc/src/libiu')
-rw-r--r-- | openbsc/src/libiu/iu.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/openbsc/src/libiu/iu.c b/openbsc/src/libiu/iu.c index 43acf2564..d619b9749 100644 --- a/openbsc/src/libiu/iu.c +++ b/openbsc/src/libiu/iu.c @@ -593,13 +593,20 @@ static int iu_page(const char *imsi, const uint32_t *tmsi_or_ptimsi, struct iu_rnc *rnc; int pagings_sent = 0; - LOGP(DRANAP, LOGL_DEBUG, "%s: Looking for RNCs to page for IMSI %s" - " (paging will use %s)\n", - is_ps? "IuPS" : "IuCS", - imsi, - tmsi_or_ptimsi ? (is_ps? "PTMSI" : "TMSI") - : "IMSI" - ); + if (tmsi_or_ptimsi) { + LOGP(DRANAP, LOGL_DEBUG, "%s: Looking for RNCs to page for IMSI %s" + " (paging will use %s %x)\n", + is_ps? "IuPS" : "IuCS", + imsi, + is_ps? "PTMSI" : "TMSI", + *tmsi_or_ptimsi); + } else { + LOGP(DRANAP, LOGL_DEBUG, "%s: Looking for RNCs to page for IMSI %s" + " (paging will use IMSI)\n", + is_ps? "IuPS" : "IuCS", + imsi + ); + } llist_for_each_entry(rnc, &rnc_list, entry) { if (!rnc->link) { |