]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
tc: skbprio: add support for JSON output
authorStephen Hemminger <stephen@networkplumber.org>
Sun, 29 Dec 2019 18:07:18 +0000 (10:07 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 6 Jan 2020 21:12:02 +0000 (13:12 -0800)
Print limit in JSON

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/q_skbprio.c

index 2e65a5899d8cc26698d4b14c06f3b862bd285d57..ca81a72cc8b1da60d66cfdfffc6e7a5f893cb549 100644 (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;
 }