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
Wed Jan 9 12:19:44 UTC 2019


Max has submitted this change and it was merged. ( 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(-)

Approvals:
  Max: Looks good to me, approved
  Pau Espin Pedrol: Looks good to me, but someone else must approve
  osmith: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



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: merged
Gerrit-Change-Id: I24dc3fad6f64ef788da9b7d790f9d5f689190c42
Gerrit-Change-Number: 12484
Gerrit-PatchSet: 2
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Stefan Sperling <stsp at stsp.name>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190109/ac6f9e44/attachment.htm>


More information about the gerrit-log mailing list