<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/12245">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/12245/2/Transceiver52M/device/lms/LMSDevice.cpp">File Transceiver52M/device/lms/LMSDevice.cpp:</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/12245/2/Transceiver52M/device/lms/LMSDevice.cpp@25">Patch Set #2, Line 25:</a> <code style="font-family:monospace,monospace">#include <boost/algorithm/string.hpp></code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm actually in process of getting rid of boost in osmo-trx code, since we only use it in URSP1 (and can be easily dropped completelly). Can you use something else?</p><p style="white-space: pre-wrap; word-wrap: break-word;">See https://gerrit.osmocom.org/#/c/osmo-trx/+/12088/ and grep for "boost".</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12245/2/Transceiver52M/device/lms/LMSDevice.cpp@103">Patch Set #2, Line 103:</a> <code style="font-family:monospace,monospace"> *  \return index of first matching item or -1 (no match) */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">s/item/device, I was first confused with item meaning the first key or value.</p><p style="white-space: pre-wrap; word-wrap: break-word;"><br>"Index of first matching item in the list or -1 (no match".</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12245/2/Transceiver52M/device/lms/LMSDevice.cpp@109">Patch Set #2, Line 109:</a> <code style="font-family:monospace,monospace">      boost::split(filters, args, boost::is_any_of(","));</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">As said, please use something else. I think there's some code you can reuse in ./Transceiver52M/osmo-trx.cpp, see comma_delimited_to_vector() in there.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Feel free to improve it by passing a new param "separator" and then you can use it to first break by "," and later by "=" if required.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12245/2/Transceiver52M/device/lms/LMSDevice.cpp@159">Patch Set #2, Line 159:</a> <code style="font-family:monospace,monospace">            delete [] info_list;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I know in other places is "delete []", but I think it's better having "delete[]" (as in https://en.cppreference.com/w/cpp/memory/new/operator_delete)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12245/2/Transceiver52M/device/lms/LMSDevice.cpp@163">Patch Set #2, Line 163:</a> <code style="font-family:monospace,monospace">  LOGC(DDEV, INFO) << "Using device: " << info_list[dev_id];</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">May be worth printing the index too.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/12245/2/tests/Transceiver52M/LMSDeviceTest.cpp">File tests/Transceiver52M/LMSDeviceTest.cpp:</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/12245/2/tests/Transceiver52M/LMSDeviceTest.cpp@43">Patch Set #2, Line 43:</a> <code style="font-family:monospace,monospace">      delete [] info_list;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">same (delete[])</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/12245">change 12245</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/12245"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-trx </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ib9aaa066a01bf9de3f78234d7ada884d6f28c852 </div>
<div style="display:none"> Gerrit-Change-Number: 12245 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 11 Dec 2018 17:37:05 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>