From e9fa16583a1e78482265b195d4cbe7a67420f6df Mon Sep 17 00:00:00 2001 From: Roman Mashak Date: Tue, 13 Mar 2018 09:57:10 -0400 Subject: [PATCH] tc: print actual action for sample action Signed-off-by: Roman Mashak Signed-off-by: Stephen Hemminger --- tc/m_sample.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tc/m_sample.c b/tc/m_sample.c index ff5ee6bd..d88846c6 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);