From b05552b14c8ac5918c9d88a568bdfc85cfe45755 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 8 Feb 2011 16:56:23 +0100 Subject: [utils] introduce ubit_dump to dump buffers of unpacked bits --- include/osmocore/utils.h | 2 +- src/utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osmocore/utils.h b/include/osmocore/utils.h index da4eb959..6fe1b388 100644 --- a/include/osmocore/utils.h +++ b/include/osmocore/utils.h @@ -20,7 +20,7 @@ uint8_t char2bcd(char c); int hexparse(const char *str, uint8_t *b, int max_len); char *hexdump(const unsigned char *buf, int len); char *hexdump_nospc(const unsigned char *buf, int len); -char *bitdump(const uint8_t *bits, unsigned int len); +char *ubit_dump(const uint8_t *bits, unsigned int len); #define static_assert(exp, name) typedef int dummy##name [(exp) ? 1 : -1]; diff --git a/src/utils.c b/src/utils.c index 52007931..49c210e0 100644 --- a/src/utils.c +++ b/src/utils.c @@ -95,7 +95,7 @@ static char *_hexdump(const unsigned char *buf, int len, char *delim) return hexd_buff; } -char *bitdump(const uint8_t *bits, unsigned int len) +char *ubit_dump(const uint8_t *bits, unsigned int len) { int i; -- cgit v1.2.3