From: Roman Mashak Date: Thu, 17 May 2018 13:28:02 +0000 (-0400) Subject: tc: add missing space symbol in ife output X-Git-Tag: v4.18.0~24^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53d34eb66cf1c40b60927bdadb9959353980537e;p=thirdparty%2Fiproute2.git tc: add missing space symbol in ife output 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 Signed-off-by: David Ahern --- diff --git a/tc/m_ife.c b/tc/m_ife.c index 5320e94db..20e9c73d9 100644 --- a/tc/m_ife.c +++ b/tc/m_ife.c @@ -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, " ");