Harald Welte has uploaded this change for review. ( 
https://gerrit.osmocom.org/10246


Change subject: hlr_ussd: Introduce LOGPSS() macro
......................................................................

hlr_ussd: Introduce LOGPSS() macro

Change-Id: I1058ef9fd67af2224c991e43bab02bcf21c9f174
---
M src/hlr_ussd.c
1 file changed, 4 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/46/10246/1

diff --git a/src/hlr_ussd.c b/src/hlr_ussd.c
index 41fba34..ef4063c 100644
--- a/src/hlr_ussd.c
+++ b/src/hlr_ussd.c
@@ -126,6 +126,9 @@
  * handling functions for individual GSUP messages
  ***********************************************************************/

+#define LOGPSS(ss, lvl, fmt, args...) \
+       LOGP(DMAIN, lvl, "%s/0x%08x: " fmt, (ss)->imsi, (ss)->session_id, ## 
args)
+
 struct ss_session {
        /* link us to hlr->ss_sessions */
        struct llist_head list;
@@ -166,7 +169,7 @@
 {
        struct ss_session *ss = data;

-       LOGP(DMAIN, LOGL_NOTICE, "%s/0x%08x: SS Session Timeout, destroying\n", 
ss->imsi, ss->session_id);
+       LOGPSS(ss, LOGL_NOTICE, "SS Session Timeout, destroying\n");
        /* FIXME: should we send a ReturnError component to the MS? */
        ss_session_free(ss);
 }

--
To view, visit https://gerrit.osmocom.org/10246
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1058ef9fd67af2224c991e43bab02bcf21c9f174
Gerrit-Change-Number: 10246
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <[email protected]>

Reply via email to