Change in libosmocore[master]: msgb: fix debug print

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Tue Jan 8 13:52:36 UTC 2019


Max has uploaded this change for review. ( https://gerrit.osmocom.org/12484


Change subject: msgb: fix debug print
......................................................................

msgb: fix debug print

Since osmo_hexdump() use static buffers we can't re-use pointers to it
after subsequent osmo_hexdump() calls. Let's print data used for
comparison directly instead.

Change-Id: I24dc3fad6f64ef788da9b7d790f9d5f689190c42
---
M src/msgb.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/84/12484/1

diff --git a/src/msgb.c b/src/msgb.c
index 9cd59c6..3902f6e 100644
--- a/src/msgb.c
+++ b/src/msgb.c
@@ -260,7 +260,7 @@
 		} else
 			LOGPC(DLGLOBAL, LOGL_FATAL, ".. ");
 
-	LOGPC(DLGLOBAL, LOGL_FATAL, "    msgb %s\n", m_dump);
+	LOGPC(DLGLOBAL, LOGL_FATAL, "    msgb %s\n", osmo_hexdump(m_data, len));
 
 	return false;
 }

-- 
To view, visit https://gerrit.osmocom.org/12484
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I24dc3fad6f64ef788da9b7d790f9d5f689190c42
Gerrit-Change-Number: 12484
Gerrit-PatchSet: 1
Gerrit-Owner: Max <msuraev at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190108/a8175182/attachment.htm>


More information about the gerrit-log mailing list