<p>Max has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12484">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">msgb: fix debug print<br><br>Since osmo_hexdump() use static buffers we can't re-use pointers to it<br>after subsequent osmo_hexdump() calls. Let's print data used for<br>comparison directly instead.<br><br>Change-Id: I24dc3fad6f64ef788da9b7d790f9d5f689190c42<br>---<br>M src/msgb.c<br>1 file changed, 1 insertion(+), 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/84/12484/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/msgb.c b/src/msgb.c</span><br><span>index 9cd59c6..3902f6e 100644</span><br><span>--- a/src/msgb.c</span><br><span>+++ b/src/msgb.c</span><br><span>@@ -260,7 +260,7 @@</span><br><span>            } else</span><br><span>                       LOGPC(DLGLOBAL, LOGL_FATAL, ".. ");</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-       LOGPC(DLGLOBAL, LOGL_FATAL, "    msgb %s\n", m_dump);</span><br><span style="color: hsl(120, 100%, 40%);">+       LOGPC(DLGLOBAL, LOGL_FATAL, "    msgb %s\n", osmo_hexdump(m_data, len));</span><br><span> </span><br><span>       return false;</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12484">change 12484</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/12484"/><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: I24dc3fad6f64ef788da9b7d790f9d5f689190c42 </div>
<div style="display:none"> Gerrit-Change-Number: 12484 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Max <msuraev@sysmocom.de> </div>