[MERGED] libosmocore[master]: [doc] Doxygen documentation on osmo_hexdump print buffer size

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Oct 16 13:19:10 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: [doc] Doxygen documentation on osmo_hexdump print buffer size
......................................................................


[doc] Doxygen documentation on osmo_hexdump print buffer size

Change-Id: I83ca2a3a555e5b3c1b7f23bf9e463a5063a8006c
---
M src/utils.c
1 file changed, 6 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/utils.c b/src/utils.c
index b4345c7..534916b 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -235,6 +235,9 @@
  *
  * This function will print a sequence of bytes as hexadecimal numbers,
  * adding one space character between each byte (e.g. "1a ef d9")
+ *
+ * The maximum size of the output buffer is 4096 bytes, i.e. the maximum
+ * number of input bytes that can be printed in one call is 1365!
  */
 char *osmo_hexdump(const unsigned char *buf, int len)
 {
@@ -248,6 +251,9 @@
  *
  * This function will print a sequence of bytes as hexadecimal numbers,
  * without any space character between each byte (e.g. "1aefd9")
+ *
+ * The maximum size of the output buffer is 4096 bytes, i.e. the maximum
+ * number of input bytes that can be printed in one call is 2048!
  */
 char *osmo_hexdump_nospc(const unsigned char *buf, int len)
 {

-- 
To view, visit https://gerrit.osmocom.org/4286
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I83ca2a3a555e5b3c1b7f23bf9e463a5063a8006c
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list