Re: [PATCH iproute2 1/1] tc: print actual action for sample action

2018-03-16 Thread Stephen Hemminger
On Tue, 13 Mar 2018 09:57:10 -0400
Roman Mashak  wrote:

> Signed-off-by: Roman Mashak 

Thanks for catching this, applied.


[PATCH iproute2 1/1] tc: print actual action for sample action

2018-03-13 Thread Roman Mashak
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