Skip to content
Snippets Groups Projects
Commit b3617a5a authored by Tim Wickberg's avatar Tim Wickberg
Browse files

Add deprecation warning to pack_bit_fmt().

parent 4db1dabc
No related branches found
No related tags found
No related merge requests found
...@@ -266,6 +266,10 @@ int unpackmem_array(char *valp, uint32_t size_valp, Buf buffer); ...@@ -266,6 +266,10 @@ int unpackmem_array(char *valp, uint32_t size_valp, Buf buffer);
packmem(NULL, 0, buf); \ packmem(NULL, 0, buf); \
} while (0) } while (0)
/* DEPRECATED - DO NOT USE THIS IN NEW CODE */
/* On larger systems the full result from bit_fmt can be
* longer than 0xfffe bytes and thus truncated.
* Use pack_bit_str_hex instead. */
#define pack_bit_fmt(bitmap,buf) do { \ #define pack_bit_fmt(bitmap,buf) do { \
assert(buf->magic == BUF_MAGIC); \ assert(buf->magic == BUF_MAGIC); \
if (bitmap) { \ if (bitmap) { \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment