diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-02-08 16:55:03 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-02-08 16:55:03 +0100 |
commit | 3d0ac5e446314c08f3e590bb4dd976b551bff618 (patch) | |
tree | 237c37a59547bc9e308c24750f156823cdd2a487 /include/osmocore | |
parent | e7509083673381f5be0e66bf6d9d76195b5fad82 (diff) |
[utils] add 'bitdump' function for bitfields
Diffstat (limited to 'include/osmocore')
-rw-r--r-- | include/osmocore/utils.h | 1 |
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]; |