<p>Patch set 3:<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/12017">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/12017/3/include/osmocom/core/msgb.h">File include/osmocom/core/msgb.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/12017/3/include/osmocom/core/msgb.h@133">Patch Set #3, Line 133:</a> <code style="font-family:monospace,monospace">/*! obtain L4 header of msgb */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">All these l4 functions belong to another patch imho.<br>Are they going to be used by someone in follow up patches?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12017/3/include/osmocom/core/msgb.h@612">Patch Set #3, Line 612:</a> <code style="font-family:monospace,monospace">/* msgb test/debug helpers */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">IMHO having all these is too much cruft. Let's keep the print parameter in the macro and remove all _print ones, I think it's fine enough.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12017/3/include/osmocom/core/msgb.h@709">Patch Set #3, Line 709:</a> <code style="font-family:monospace,monospace">bool msgb_cmpr_l3(const char *f, size_t l, const struct msgb *msg, const uint8_t *data, size_t len, bool print);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This should not be there anymore.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/12017/3/src/msgb.c">File src/msgb.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/12017/3/src/msgb.c@211">Patch Set #3, Line 211:</a> <code style="font-family:monospace,monospace">          m_dump = msgb_hexdump(msg);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Since this function can be quite heavy, let's do:<br>m_dump = print ? msgb_hexdump(msg) : NULL;</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12017/3/src/msgb.c@252">Patch Set #3, Line 252:</a> <code style="font-family:monospace,monospace">    printf("%s:%zu %s() L%u data mismatch:\nexpected %s\n         ",</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">extra whitespace here right?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/12017">change 12017</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/12017"/><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: I3bc95f2f5ab6e3f4b502647fb3e0aaaf1f7c4cf5 </div>
<div style="display:none"> Gerrit-Change-Number: 12017 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </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: Max <msuraev@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 30 Nov 2018 16:49:34 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>