<p><a href="https://gerrit.osmocom.org/12368">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/12368/3/src/libmsc/msc_mgcp.c">File src/libmsc/msc_mgcp.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/12368/3/src/libmsc/msc_mgcp.c@1085">Patch Set #3, Line 1085:</a> <code style="font-family:monospace,monospace">conn->fi->id);</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Why not 'LOGPFSM(conn->fi, ... […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">because then it would be clamped to another logging category.</p><p style="white-space: pre-wrap; word-wrap: break-word;">To reiterate, the LOGPFSM() was initially intended for logging the FSM state transitions, but using the FSM instance's context is super useful. So at some point I added LOGPFSML() to be able to modify the logging level. However, so far each FSM definition is fixed to one particular logging category, ran_conn is always DMM.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Maybe we also need LOGPFSMSL(FI, SUBSYS, LEVEL, fmt, args)?</p><p style="white-space: pre-wrap; word-wrap: break-word;">The next best thing is to use the FSM instance's context as a string in a normal log statement. That omits the current FSM state, but otherwise logs everything else of interest.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/12368">change 12368</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/12368"/><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: I358cfbaf0f44f25148e8b9bafcb9257b1952b35a </div>
<div style="display:none"> Gerrit-Change-Number: 12368 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </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: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 19 Dec 2018 22:29:42 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>