<p><a href="https://gerrit.osmocom.org/c/osmo-msc/+/15847">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-msc/+/15847/1/src/libmsc/ran_msg_iu.c">File src/libmsc/ran_msg_iu.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-msc/+/15847/1/src/libmsc/ran_msg_iu.c@402">Patch Set #1, Line 402:</a> <code style="font-family:monospace,monospace">               LOG_RAN_IU_ENC(caller_fi, LOGL_DEBUG, "DirectTransfer\n");</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I'm not following this commit. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">When I wrote the RAN message de/encoding, I decided to put the string constants directly in the de/encoding functions; I only need to add 5 strings here, for the encoding; the decoding already has individual strings in each message type's decoding code path.</p><p style="white-space: pre-wrap; word-wrap: break-word;">We already have 1:1 separate code paths for each message, it doesn't make much sense to again iterate a value string array.</p><p style="white-space: pre-wrap; word-wrap: break-word;">An underlying idea was that each code path could add some details, like this DTAP could also log which enclosed DTAP message type is being encoded. But I didn't get around to that...</p><p style="white-space: pre-wrap; word-wrap: break-word;">(I also have some general dislike of the value_string design, because it has to iterate arrays for each and every value, but you can ignore that)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-msc/+/15847">change 15847</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-msc/+/15847"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ib0e0630d775a28958ea86802f70cbeec07087f91 </div>
<div style="display:none"> Gerrit-Change-Number: 15847 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 24 Oct 2019 22:36:36 +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>