summaryrefslogtreecommitdiff
path: root/tc/m_action.c
diff options
context:
space:
mode:
Diffstat (limited to 'tc/m_action.c')
-rw-r--r--tc/m_action.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tc/m_action.c b/tc/m_action.c
index 0400132c..a446cabd 100644
--- a/tc/m_action.c
+++ b/tc/m_action.c
@@ -586,7 +586,13 @@ int print_action(struct nlmsghdr *n, void *arg)
open_json_object(NULL);
tc_dump_action(fp, tb[TCA_ACT_TAB], tot_acts ? *tot_acts:0, false);
- print_ext_msg(tb);
+
+ if (tb[TCA_ROOT_EXT_WARN_MSG]) {
+ print_string(PRINT_ANY, "warn", "%s",
+ rta_getattr_str(tb[TCA_ROOT_EXT_WARN_MSG]));
+ print_nl();
+ }
+
close_json_object();
return 0;