<p>Patch set 2:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.osmocom.org/11577">View Change</a></p><p>7 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11577/2/include/osmocom/gsm/gsm0808.h">File include/osmocom/gsm/gsm0808.h:</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/11577/2/include/osmocom/gsm/gsm0808.h@178">Patch Set #2, Line 178:</a> <code style="font-family:monospace,monospace">const char *gsm0808_cause_name(enum gsm0808_cause cause);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(nice! the lack of enum use has caused me a lot of head scratching when trying to figure out *which* cause a context is talking about. I wish we would replace all these uint8_t args with their proper enums.)</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11577/2/include/osmocom/gsm/gsm0808_utils.h">File include/osmocom/gsm/gsm0808_utils.h:</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/11577/2/include/osmocom/gsm/gsm0808_utils.h@110">Patch Set #2, Line 110:</a> <code style="font-family:monospace,monospace">/*! Return 3GPP TS 08.08 §3.2.2.5 Class of a given Cause */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">maybe rather name the newer version -- that would be 48.008, right? -- only problem is consistency with the rest of the file? But no-one should read the outdated specs anymore...</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11577/2/include/osmocom/gsm/gsm0808_utils.h@116">Patch Set #2, Line 116:</a> <code style="font-family:monospace,monospace">/*! Check whether 3GPP TS 08.08 §3.2.2.5 Class has extended bit set */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">strictly speaking, these comments should have a doxygen \returns clause ... but whatever</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11577/2/include/osmocom/gsm/gsm0808_utils.h@118">Patch Set #2, Line 118:</a> <code style="font-family:monospace,monospace">{ /* check that cause looks like 1XXX0000 where XXX represent class */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(weird formatting, comment in { line)</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11577/2/src/gsm/gsm0808.c">File src/gsm/gsm0808.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/11577/2/src/gsm/gsm0808.c@1274">Patch Set #2, Line 1274:</a> <code style="font-family:monospace,monospace">static const struct value_string gsm0808_cause_class_names[] = {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(I would be fine with this, but a while back the decision was that the value string arrays should be accessible as public API -- @laforge, I think that was your opinion, fine to leave this hidden in static .c context?)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11577/2/src/gsm/gsm0808.c@1276">Patch Set #2, Line 1276:</a> <code style="font-family:monospace,monospace">  { GSM0808_CAUSE_CLASS_NORM1,            "Normal event" },</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">shouldn't the name distinguish between 0 and 1?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11577/2/src/gsm/gsm0808.c@1282">Patch Set #2, Line 1282:</a> <code style="font-family:monospace,monospace"> { GSM0808_CAUSE_CLASS_INETW,            "Internetworking" },</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I think this should be "Interworking" -- whatever that means :)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/11577">change 11577</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/11577"/><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: I31b31dfc22eb4b6b07089e1255246ac458125340 </div>
<div style="display:none"> Gerrit-Change-Number: 11577 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Max <msuraev@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: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 05 Nov 2018 03:34:53 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>