From 3d0ac5e446314c08f3e590bb4dd976b551bff618 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 8 Feb 2011 16:55:03 +0100 Subject: [utils] add 'bitdump' function for bitfields --- include/osmocore/utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/osmocore/utils.h b/include/osmocore/utils.h index 93cefbe6..da4eb959 100644 --- a/include/osmocore/utils.h +++ b/include/osmocore/utils.h @@ -20,6 +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); #define static_assert(exp, name) typedef int dummy##name [(exp) ? 1 : -1]; -- cgit v1.2.3