<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10246">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">hlr_ussd: Introduce LOGPSS() macro<br><br>Change-Id: I1058ef9fd67af2224c991e43bab02bcf21c9f174<br>---<br>M src/hlr_ussd.c<br>1 file changed, 4 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/46/10246/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/hlr_ussd.c b/src/hlr_ussd.c</span><br><span>index 41fba34..ef4063c 100644</span><br><span>--- a/src/hlr_ussd.c</span><br><span>+++ b/src/hlr_ussd.c</span><br><span>@@ -126,6 +126,9 @@</span><br><span>  * handling functions for individual GSUP messages</span><br><span>  ***********************************************************************/</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#define LOGPSS(ss, lvl, fmt, args...) \</span><br><span style="color: hsl(120, 100%, 40%);">+       LOGP(DMAIN, lvl, "%s/0x%08x: " fmt, (ss)->imsi, (ss)->session_id, ## args)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> struct ss_session {</span><br><span>  /* link us to hlr->ss_sessions */</span><br><span>         struct llist_head list;</span><br><span>@@ -166,7 +169,7 @@</span><br><span> {</span><br><span>   struct ss_session *ss = data;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-       LOGP(DMAIN, LOGL_NOTICE, "%s/0x%08x: SS Session Timeout, destroying\n", ss->imsi, ss->session_id);</span><br><span style="color: hsl(120, 100%, 40%);">+    LOGPSS(ss, LOGL_NOTICE, "SS Session Timeout, destroying\n");</span><br><span>       /* FIXME: should we send a ReturnError component to the MS? */</span><br><span>       ss_session_free(ss);</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10246">change 10246</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/10246"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I1058ef9fd67af2224c991e43bab02bcf21c9f174 </div>
<div style="display:none"> Gerrit-Change-Number: 10246 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>