From a6749ac7d4efcb3adfe3ec7959a5ef2c7a383a35 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 8 Jan 2019 14:42:30 +0100 Subject: 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 --- src/msgb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/msgb.c') diff --git a/src/msgb.c b/src/msgb.c index 9cd59c67..3902f6e8 100644 --- a/src/msgb.c +++ b/src/msgb.c @@ -260,7 +260,7 @@ bool _msgb_eq(const char *file, size_t line, const char *func, uint8_t level, } 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; } -- cgit v1.2.3