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/a-set.c | |
parent | b256f241459c51224a4bf428f4bc5dfa44882920 (diff) |
Filter: Merged filter line item dumpers into common generated source
Diffstat (limited to 'nest/a-set.c')
-rw-r--r-- | nest/a-set.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/nest/a-set.c b/nest/a-set.c index 10ddd139..78922ffd 100644 --- a/nest/a-set.c +++ b/nest/a-set.c @@ -72,15 +72,12 @@ ec_format(byte *buf, u64 ec) char tbuf[16], *kind; type = ec >> 48; - switch (type & 0xf0ff) - { - case EC_RT: kind = "rt"; break; - case EC_RO: kind = "ro"; break; + kind = ec_subtype_str(type & 0xf0ff); - default: - kind = tbuf; - bsprintf(kind, "unknown 0x%x", type); - } + if (!kind) { + kind = tbuf; + bsprintf(kind, "unknown 0x%x", type); + } switch (ec >> 56) { |