From 096a666712ae255ba919dd8e5f38c68a948f97bc Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 16 Oct 2017 14:33:11 +0200 Subject: [doc] Doxygen documentation on osmo_hexdump print buffer size Change-Id: I83ca2a3a555e5b3c1b7f23bf9e463a5063a8006c --- src/utils.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index b4345c74..534916b6 100644 --- a/src/utils.c +++ b/src/utils.c @@ -235,6 +235,9 @@ char *osmo_ubit_dump(const uint8_t *bits, unsigned int len) * * 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 @@ char *osmo_hexdump(const unsigned char *buf, int len) * * 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) { -- cgit v1.2.3