<p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #d4ffd4;">Code-Review +2</span></p><p><a href="https://gerrit.osmocom.org/12408">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/12408/1/src/gsm/gsup.c">File src/gsm/gsup.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/12408/1/src/gsm/gsup.c@96">Patch Set #1, Line 96:</a> <code style="font-family:monospace,monospace">osmo_gsup_get_err_msg_type</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I would also prefer the macro, so the function does not need to be adjusted every time. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">while the existing GSUP message definitions "by coincidence" implicitly follow the rule that the error message is the request | 0x000001, I don't think this is indicated explicitly as a rule anywhere in the GSUP spec.  I'm actually surprised that the macro exists.</p><p style="white-space: pre-wrap; word-wrap: break-word;">So if you want to make the rule explicit, make sure it's stated in the spec, there's a big fat comment on top of the enum/define for OSMO_GSUP_MSG_T and then make this function use the macro and mark it as deprecated.  That should be a separate commit/patch from this one.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/12408">change 12408</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/12408"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I801a0d6ffe09cfc75b77ab602bd25b3dc40f19c0 </div>
<div style="display:none"> Gerrit-Change-Number: 12408 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </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: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 21 Dec 2018 12:45:03 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>