diff options
| author | Pat Ruddy <pat@voltanet.io> | 2021-05-26 12:25:46 +0100 |
|---|---|---|
| committer | Pat Ruddy <pat@voltanet.io> | 2021-06-18 09:34:43 +0100 |
| commit | 0e2deb587843fd18682ff20225b8e8930a52ebbc (patch) | |
| tree | 046becbcd826e53fc6eddde946e92cb8871f190a /lib/memory.c | |
| parent | 161b567451593a7a176bc91b5aaafc53a578be75 (diff) | |
lib: add an MTYPE for bitfields
it is handy to be able to see allocated bitfields in the show
memory output.
Signed-off-by: Pat Ruddy <pat@voltanet.io>
Diffstat (limited to 'lib/memory.c')
| -rw-r--r-- | lib/memory.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/memory.c b/lib/memory.c index 0dc8e90524..18811777ae 100644 --- a/lib/memory.c +++ b/lib/memory.c @@ -36,6 +36,7 @@ struct memgroup **mg_insert = &mg_first; DEFINE_MGROUP(LIB, "libfrr"); DEFINE_MTYPE(LIB, TMP, "Temporary memory"); +DEFINE_MTYPE(LIB, BITFIELD, "Bitfield memory"); static inline void mt_count_alloc(struct memtype *mt, size_t size, void *ptr) { |
