]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: add missing space symbol in ife output
authorRoman Mashak <mrv@mojatatu.com>
Thu, 17 May 2018 13:28:02 +0000 (09:28 -0400)
committerDavid Ahern <dsahern@gmail.com>
Fri, 18 May 2018 16:10:48 +0000 (09:10 -0700)
In order to make TDC tests match the output patterns, the missing space
character must be added in the mode output string.

Fixes: 8744c5d3388e3 ("tc: jsonify ife action")
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
tc/m_ife.c

index 5320e94dbd48896e8e5950da55e634ce99835dfa..20e9c73d9a0edb7ee20365dd199a5942f294a293 100644 (file)
@@ -240,7 +240,7 @@ static int print_ife(struct action_util *au, FILE *f, struct rtattr *arg)
        p = RTA_DATA(tb[TCA_IFE_PARMS]);
 
        print_string(PRINT_ANY, "kind", "%s ", "ife");
-       print_string(PRINT_ANY, "mode", "%s",
+       print_string(PRINT_ANY, "mode", "%s ",
                     p->flags & IFE_ENCODE ? "encode" : "decode");
        print_action_control(f, "action ", p->action, " ");