From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f46.google.com ([209.85.214.46]:35418 "EHLO mail-it0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932590AbeCMN5R (ORCPT ); Tue, 13 Mar 2018 09:57:17 -0400 Received: by mail-it0-f46.google.com with SMTP id v194-v6so248585itb.0 for ; Tue, 13 Mar 2018 06:57:17 -0700 (PDT) From: Roman Mashak To: stephen@networkplumber.org Cc: netdev@vger.kernel.org, kernel@mojatatu.com, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, Roman Mashak Subject: [PATCH iproute2 1/1] tc: print actual action for sample action Date: Tue, 13 Mar 2018 09:57:10 -0400 Message-Id: <1520949430-14491-1-git-send-email-mrv@mojatatu.com> Sender: netdev-owner@vger.kernel.org List-ID: Signed-off-by: Roman Mashak --- tc/m_sample.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tc/m_sample.c b/tc/m_sample.c index ff5ee6bd1ef6..d88846c63be3 100644 --- a/tc/m_sample.c +++ b/tc/m_sample.c @@ -163,6 +163,8 @@ static int print_sample(struct action_util *au, FILE *f, struct rtattr *arg) fprintf(f, " trunc_size %d", rta_getattr_u32(tb[TCA_SAMPLE_TRUNC_SIZE])); + print_action_control(f, " ", p->action, ""); + fprintf(f, "\n\tindex %d ref %d bind %d", p->index, p->refcnt, p->bindcnt); -- 2.7.4