<p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18092">View Change</a></p><p>4 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18092/1/include/osmocom/bsc/gsm_data.h">File include/osmocom/bsc/gsm_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/osmo-bsc/+/18092/1/include/osmocom/bsc/gsm_data.h@1557">Patch Set #1, Line 1557:</a> <code style="font-family:monospace,monospace">enum {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">can we have a name for this enum? for the sake of being able to refer to it. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">These enum's are not named in other parts of the code, so I was following the de-facto convention. I can add a name for this if you could suggest one - I'm not sure of Osmocom naming conventions.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18092/1/include/osmocom/bsc/gsm_data.h@1588">Patch Set #1, Line 1588:</a> <code style="font-family:monospace,monospace">     struct osmo_stat_item_group *bsc_statg;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">worth adding a comment on top explaining what's used for now that you are adding it.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Ack</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18092/1/src/osmo-bsc/a_reset.c">File src/osmo-bsc/a_reset.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/osmo-bsc/+/18092/1/src/osmo-bsc/a_reset.c@75">Patch Set #1, Line 75:</a> <code style="font-family:monospace,monospace">      LOGPFSML(fi, LOGL_NOTICE, "SIGTRAN connection succeeded.\n");</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Ugh, why do we have a connection successed on a "disc" (disconnect?" callback?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Because this is an "action" callback and the only event which can hit this cb changes the state to "connected". But I agree this is confusing, so I've changed this to be more clear with "onenter" CB in the next patch version. I just didn't know about "onenter" when I was writing this.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18092/1/src/osmo-bsc/bsc_init.c">File src/osmo-bsc/bsc_init.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/osmo-bsc/+/18092/1/src/osmo-bsc/bsc_init.c@48">Patch Set #1, Line 48:</a> <code style="font-family:monospace,monospace">    { "msc_link", "MSC link status.", "", 16, 0 },</code></p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Do we add dots at the end of descriptions? probably not (please check).</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Historically there were dots, but I agree this is not correct and I'll remove them from new ones.</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Last param is a pointer, so NULL fits better.</p></blockquote><pre style="font-family: monospace,monospace; white-space: pre-wrap;">No, it's a default value:<br>/*! Statistics item description */<br>struct osmo_stat_item_desc {<br>  const char *name;       /*!< name of the item */<br>   const char *description;/*!< description of the item */<br>    const char *unit;       /*!< unit of a value */<br>    unsigned int num_values;/*!< number of values to store in FIFO */<br>  int32_t default_value;  /*!< default value */<br>};</pre></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18092">change 18092</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/c/osmo-bsc/+/18092"/><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-Change-Id: Ibe4b29056ba704a27b925cfdba49f343ee34f428 </div>
<div style="display:none"> Gerrit-Change-Number: 18092 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: ipse <Alexander.Chemeris@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: ipse <Alexander.Chemeris@gmail.com> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 07 May 2020 13:10:38 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>