<p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18903">View Change</a></p><p>6 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18903/1/include/osmo-bts/bts_shutdown_fsm.h">File include/osmo-bts/bts_shutdown_fsm.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-bts/+/18903/1/include/osmo-bts/bts_shutdown_fsm.h@29">Patch Set #1, Line 29:</a> <code style="font-family:monospace,monospace">ST_BTS_SHUTDOWN_NONE</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Cosmetic: BTS_SHUTDOWN_ST_* and BTS_SHUTDOWN_EV_* is more usual the ST_*. Not critical.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18903/1/include/osmo-bts/bts_shutdown_fsm.h@41">Patch Set #1, Line 41:</a> <code style="font-family:monospace,monospace">bts_shutdown</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Rather move this API to bts.{c,h}, so there will be no need to include this header everywhere.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18903/1/src/common/bts.c">File src/common/bts.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-bts/+/18903/1/src/common/bts.c@a275">Patch Set #1, Line 275:</a> <code style="font-family:monospace,monospace">exit(42);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Horay! Finally we can get rid of this magic return code that confuses systemd...</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18903/1/src/common/bts_shutdown_fsm.c">File src/common/bts_shutdown_fsm.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-bts/+/18903/1/src/common/bts_shutdown_fsm.c@51">Patch Set #1, Line 51:</a> <code style="font-family:monospace,monospace">st_bts_shutdown_wait_ramp_down_compl_on_enter</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Given that it's a static (private) symbol, its name can be much shorter. At least there is no need to prefix with 'st_bts_shutdown' because everything in this file is about BTS shutdown, so it looks redundant. Also not critical, but I would still prefer short names.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18903/1/src/common/bts_shutdown_fsm.c@68">Patch Set #1, Line 68:</a> <code style="font-family:monospace,monospace">llist_for_each_entry_reverse</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Would be nice to add a comment explaining why we doing reverse here.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18903/1/src/common/bts_shutdown_fsm.c@130">Patch Set #1, Line 130:</a> <code style="font-family:monospace,monospace">constructor</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Constructors are usually placed at the bottom of the file.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/18903">change 18903</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-bts/+/18903"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I8f48f17e61c3b9b86342eaf5b8a2b1ac9758bde5 </div>
<div style="display:none"> Gerrit-Change-Number: 18903 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 18 Jun 2020 13:37:04 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>