aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Lee <ben@b1c1l1.com>2020-04-14 21:11:12 -0700
committerStephen Hemminger <stephen@networkplumber.org>2020-04-20 09:34:56 -0700
commitf03ad792f3cdef5ade92392db6710441b35b47dd (patch)
treec52763119070708ee2ea0d2754bf284ba0fda6a1
parent14d2df887481dd2130c6ae5d023325262429ce3c (diff)
downloadiproute2-f03ad792f3cdef5ade92392db6710441b35b47dd.tar.gz
tc: fq_codel: fix class stat deficit is signed int
The fq_codel class stat deficit is a signed int. This is a regression from when JSON output was added. Fixes: 997f2dc19378 ("tc: Add JSON output of fq_codel stats") Signed-off-by: Benjamin Lee <ben@b1c1l1.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r--tc/q_fq_codel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tc/q_fq_codel.c b/tc/q_fq_codel.c
index efed4d289..1c6cf1e0d 100644
--- a/tc/q_fq_codel.c
+++ b/tc/q_fq_codel.c
@@ -264,7 +264,7 @@ static int fq_codel_print_xstats(struct qdisc_util *qu, FILE *f,
st->qdisc_stats.old_flows_len);
}
if (st->type == TCA_FQ_CODEL_XSTATS_CLASS) {
- print_uint(PRINT_ANY, "deficit", " deficit %u",
+ print_int(PRINT_ANY, "deficit", " deficit %d",
st->class_stats.deficit);
print_uint(PRINT_ANY, "count", " count %u",
st->class_stats.count);