summaryrefslogtreecommitdiffstats
path: root/include/osmocore
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-02-08 16:55:03 +0100
committerHarald Welte <laforge@gnumonks.org>2011-02-08 16:55:03 +0100
commit3d0ac5e446314c08f3e590bb4dd976b551bff618 (patch)
tree237c37a59547bc9e308c24750f156823cdd2a487 /include/osmocore
parente7509083673381f5be0e66bf6d9d76195b5fad82 (diff)
[utils] add 'bitdump' function for bitfields
Diffstat (limited to 'include/osmocore')
-rw-r--r--include/osmocore/utils.h1
1 files changed, 1 insertions, 0 deletions
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];