From e2a4536a4315ba1db6afccd4ccc41499bbde4c14 Mon Sep 17 00:00:00 2001 From: Petr Sabata Date: Wed, 15 Feb 2012 06:02:33 +0000 Subject: [PATCH] iproute2: tc - mqprio formatted print fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just a minor correction of mqprio printf()'s. Reported-by: Petr Písař Signed-off-by: Petr Šabata --- tc/q_mqprio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tc/q_mqprio.c b/tc/q_mqprio.c index bf734a0f..b2d8c129 100644 --- a/tc/q_mqprio.c +++ b/tc/q_mqprio.c @@ -116,10 +116,10 @@ int mqprio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) fprintf(f, " tc %u map ", qopt->num_tc); for (i = 0; i <= TC_PRIO_MAX; i++) - fprintf(f, "%d ", qopt->prio_tc_map[i]); + fprintf(f, "%u ", qopt->prio_tc_map[i]); fprintf(f, "\n queues:"); for (i = 0; i < qopt->num_tc; i++) - fprintf(f, "(%i:%i) ", qopt->offset[i], + fprintf(f, "(%u:%u) ", qopt->offset[i], qopt->offset[i] + qopt->count[i] - 1); return 0; }