<p><a href="https://gerrit.osmocom.org/13963">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/13963/1/src/libmsc/gsm_04_08_cc.c">File src/libmsc/gsm_04_08_cc.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13963/1/src/libmsc/gsm_04_08_cc.c@1891">Patch Set #1, Line 1891:</a> <code style="font-family:monospace,monospace">LOG_TRANS_CAT</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Alternatively, we can make LOG_TRANS() macro NULL-safe:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  #define LOG_TRANS(trans, level, fmt, args...) do { \<br>    if ((trans) != NULL) \<br>      LOG_TRANS_CAT(trans, (trans)->log_subsys, level, fmt, ##args) \<br>    else \<br>      LOGP(DMSC, level, fmt, args...); \<br>  } while (0);</pre><p style="white-space: pre-wrap; word-wrap: break-word;">or less elegant:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  #define LOG_TRANS(trans, level, fmt, args...) \<br>    LOG_TRANS_CAT(trans, (trans) ? (trans)->log_subsys : DMSC, level, fmt, ##args)</pre></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/13963/1/src/libmsc/transaction.c">File src/libmsc/transaction.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13963/1/src/libmsc/transaction.c@134">Patch Set #1, Line 134:</a> <code style="font-family:monospace,monospace">LOG_TRANS_CAT(trans, DMSC, LOGL_ERROR</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Please see: https://gerrit.osmocom.org/#/c/osmo-msc/+/13974/</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/13963">change 13963</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/13963"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ia14bd28e1db570c487ad8e90e29a69208e2226f2 </div>
<div style="display:none"> Gerrit-Change-Number: 13963 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: tnt <tnt@246tNt.com> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: tnt <tnt@246tNt.com> </div>
<div style="display:none"> Gerrit-CC: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 10 May 2019 20:22:42 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>