diff options
author | Maria Matejka <mq@ucw.cz> | 2019-02-12 14:16:28 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2019-02-20 22:30:54 +0100 |
commit | de12cd18fb213ee9cc872fec77b789f34cfd7cc4 (patch) | |
tree | 99ef5676a83ffc0ef6b50a787ab408cc04d3086a /nest/attrs.h | |
parent | b256f241459c51224a4bf428f4bc5dfa44882920 (diff) |
Filter: Merged filter line item dumpers into common generated source
Diffstat (limited to 'nest/attrs.h')
-rw-r--r-- | nest/attrs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nest/attrs.h b/nest/attrs.h index 37227d9b..4efcff79 100644 --- a/nest/attrs.h +++ b/nest/attrs.h @@ -125,6 +125,14 @@ enum ec_subtype { EC_GENERIC = 0xFFFF, }; +static inline const char *ec_subtype_str(const enum ec_subtype ecs) { + switch (ecs) { + case EC_RT: return "rt"; + case EC_RO: return "ro"; + default: return NULL; + } +} + /* Transitive bit (for first u32 half of EC) */ #define EC_TBIT 0x40000000 |