]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: prio: fix space in JSON tag
authorStephen Hemminger <stephen@networkplumber.org>
Sun, 29 Dec 2019 18:58:13 +0000 (10:58 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 6 Jan 2020 21:11:41 +0000 (13:11 -0800)
The priomap should not have extra space in the tag.

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

index 8ef7cfa260d5bf5a3363a65035247e3ff1c7880a..a723a151bb7fbd720233ac2b128e68013d2cd7e7 100644 (file)
@@ -108,7 +108,7 @@ int prio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
                return -1;
 
        print_uint(PRINT_ANY, "bands", "bands %u ", qopt->bands);
-       open_json_array(PRINT_ANY, "priomap ");
+       open_json_array(PRINT_ANY, "priomap");
        for (i = 0; i <= TC_PRIO_MAX; i++)
                print_uint(PRINT_ANY, NULL, " %d", qopt->priomap[i]);
        close_json_array(PRINT_ANY, "");