Message ID | 20171125100757.1426-3-jiri@resnulli.us |
---|---|
State | Accepted, archived |
Delegated to: | stephen hemminger |
Headers | show |
Series | tc: couple ouf action cookie printout fixes | expand |
diff --git a/tc/m_action.c b/tc/m_action.c index aa3aa52..e6d9149 100644 --- a/tc/m_action.c +++ b/tc/m_action.c @@ -309,7 +309,7 @@ static int tc_print_one_action(FILE *f, struct rtattr *arg) int strsz = RTA_PAYLOAD(tb[TCA_ACT_COOKIE]); char b1[strsz * 2 + 1]; - fprintf(f, "\tcookie len %d %s\n", strsz, + fprintf(f, "\tcookie %s\n", hexstring_n2a(RTA_DATA(tb[TCA_ACT_COOKIE]), strsz, b1, sizeof(b1))); }