libosmocore[master]: add function msgb_printf() to print formatted text into msg buf

Neels Hofmeyr gerrit-no-reply at
Fri Oct 13 13:52:13 UTC 2017

Patch Set 3:

(1 comment)
File tests/msgb/msgb_test.c:

Line 291: 	       msg->data);
> Not sure I get what you want, but there's msgb_hexdump() which might be use
what I want is to output the buffer contents as indicated by msgb_length(), instead of trying to guess its length with strlen() on the data and relying on a nul byte that is actually outside of the msgb data. msgb_hexdump() works, but it outputs the hexdump instead of the plain string, so it makes it hard for humans to verify that the resulting string is as expected.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I15e1af68616309555d0ed9ac5da027c9833d42e3
Gerrit-PatchSet: 3
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: dexter <pmaier at>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at>
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at>
Gerrit-HasComments: Yes

More information about the gerrit-log mailing list