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 <[email protected]>

Reply via email to