From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roman Mashak Subject: [PATCH iproute2-next 1/1] tc: add missing space symbol in ife output Date: Thu, 17 May 2018 09:28:02 -0400 Message-ID: <1526563682-28095-1-git-send-email-mrv@mojatatu.com> Cc: netdev@vger.kernel.org, kernel@mojatatu.com, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, Roman Mashak To: stephen@networkplumber.org Return-path: Received: from mail-it0-f65.google.com ([209.85.214.65]:36548 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751319AbeEQN2I (ORCPT ); Thu, 17 May 2018 09:28:08 -0400 Received: by mail-it0-f65.google.com with SMTP id e20-v6so8867985itc.1 for ; Thu, 17 May 2018 06:28:08 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: In order to make TDC tests match the output patterns, the missing space character must be added in the mode output string. Signed-off-by: Roman Mashak --- tc/m_ife.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tc/m_ife.c b/tc/m_ife.c index 5320e94dbd48..20e9c73d9a0e 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, " "); -- 2.7.4