tc: skbprio: add support for JSON output

Print limit in JSON

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Stephen Hemminger 2019-12-29 10:07:18 -08:00
parent 1d6b73be70
commit f8bebea915

View File

@ -73,7 +73,8 @@ static int skbprio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
if (RTA_PAYLOAD(opt) < sizeof(*qopt))
return -1;
qopt = RTA_DATA(opt);
fprintf(f, "limit %u ", qopt->limit);
print_uint(PRINT_ANY, "limit", "limit %u ", qopt->limit);
return 0;
}