<p>Patch set 1:<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/11565">View Change</a></p><p>5 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11565/1//COMMIT_MSG">Commit Message:</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/11565/1//COMMIT_MSG@10">Patch Set #1, Line 10:</a> <code style="font-family:monospace,monospace">* explicitly check for MGW mode before closing the loop via MGCP MDCX</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I don't see how these two changes end up in the same patch. Please separate orthogonal changes, especially when it's logging tweaks vs. functional changes</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11565/1/include/osmocom/bsc/bsc_msc_data.h">File include/osmocom/bsc/bsc_msc_data.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/11565/1/include/osmocom/bsc/bsc_msc_data.h@62">Patch Set #1, Line 62:</a> <code style="font-family:monospace,monospace">extern const struct value_string bsc_lcls_mode_names[];</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">at some point we agreed to always add something like this:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  static inline const char *bsc_lcls_mode_name(enum bsc_lcls_mode val)<br>  { return get_value_string(...); }</pre></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11565/1/src/osmo-bsc/gsm_data.c">File src/osmo-bsc/gsm_data.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/11565/1/src/osmo-bsc/gsm_data.c@53">Patch Set #1, Line 53:</a> <code style="font-family:monospace,monospace">   { 0, NULL }</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(possible to just write '{}' in the last line)</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11565/1/src/osmo-bsc/osmo_bsc_lcls.c">File src/osmo-bsc/osmo_bsc_lcls.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/11565/1/src/osmo-bsc/osmo_bsc_lcls.c@243">Patch Set #1, Line 243:</a> <code style="font-family:monospace,monospace">             get_value_string(bsc_lcls_mode_names, conn->sccp.msc->lcls_mode));</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">this and the others below get shorter with bsc_lcls_mode_name().</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11565/1/src/osmo-bsc/osmo_bsc_lcls.c@252">Patch Set #1, Line 252:</a> <code style="font-family:monospace,monospace">              struct mgcp_conn_peer mdcx_info = (struct mgcp_conn_peer){</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">whitespace missing before {</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">This is a struct initializer, so I'd favor Max's formatting choice: not place a space. Compare:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  libosmocore/src/gsm/gsm0808_utils.c<br>  990:               *dst = (struct gsm0808_cell_id_list2){<br>  996:  *dst = (struct gsm0808_cell_id_list2){</pre><p style="white-space: pre-wrap; word-wrap: break-word;">and various others</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/11565">change 11565</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/11565"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ie91cc70de20ade2bfa3a1a108c731341f5e739bb </div>
<div style="display:none"> Gerrit-Change-Number: 11565 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Max <msuraev@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-CC: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 05 Nov 2018 03:02:37 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>