<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9702">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gprs_bssgp: extend log output<br><br>When uplink unit data is received, then the debug log shows the TLLI<br>only, however it would also be interesting to know the exact length of the<br>data as well as the contents of the LLCPU that is received<br><br>- Display TLLI and LLCPDU-length on log level info<br>- Display TLLI, LLCPDU-length and a hexdump of the LLCPDU on log<br>  level debug<br><br>Change-Id: I2980174c899b63717efe218ff5ec8d314c0d6da4<br>Patch-by: Octasic inc.<br>Related: SYS#4257<br>---<br>M src/gb/gprs_bssgp.c<br>1 file changed, 9 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/02/9702/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gb/gprs_bssgp.c b/src/gb/gprs_bssgp.c</span><br><span>index d5d4ea8..fb1862b 100644</span><br><span>--- a/src/gb/gprs_bssgp.c</span><br><span>+++ b/src/gb/gprs_bssgp.c</span><br><span>@@ -389,7 +389,15 @@</span><br><span>    /* extract TLLI and parse TLV IEs */</span><br><span>         msgb_tlli(msg) = osmo_ntohl(budh->tlli);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- DEBUGP(DBSSGP, "BSSGP TLLI=0x%08x Rx UPLINK-UNITDATA\n", msgb_tlli(msg));</span><br><span style="color: hsl(120, 100%, 40%);">+   LOGP(DBSSGP, LOGL_INFO,</span><br><span style="color: hsl(120, 100%, 40%);">+            "BSSGP TLLI=0x%08x Rx PLINK-UNITDATA, LLC-PDU LEN[%u]\n",</span><br><span style="color: hsl(120, 100%, 40%);">+           msgb_tlli(msg), TLVP_LEN(tp, BSSGP_IE_LLC_PDU));</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       LOGP(DBSSGP, LOGL_DEBUG, "TLLI=0x%08x, LLC-PDU LEN[%u], DATA[%s]\n",</span><br><span style="color: hsl(120, 100%, 40%);">+             msgb_tlli(msg),</span><br><span style="color: hsl(120, 100%, 40%);">+       TLVP_LEN(tp, BSSGP_IE_LLC_PDU),</span><br><span style="color: hsl(120, 100%, 40%);">+       osmo_hexdump((uint8_t *) TLVP_VAL(tp, BSSGP_IE_LLC_PDU),</span><br><span style="color: hsl(120, 100%, 40%);">+                   TLVP_LEN(tp, BSSGP_IE_LLC_PDU)));</span><br><span> </span><br><span>      /* Cell ID and LLC_PDU are the only mandatory IE */</span><br><span>  if (!TLVP_PRESENT(tp, BSSGP_IE_CELL_ID) ||</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9702">change 9702</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/9702"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I2980174c899b63717efe218ff5ec8d314c0d6da4 </div>
<div style="display:none"> Gerrit-Change-Number: 9702 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>