Patchwork iproute2: tc - mqprio formatted print fix

login
register
mail settings
Submitter Petr Sabata
Date Feb. 15, 2012, 4:02 p.m.
Message ID <1329321753-18081-1-git-send-email-contyk@redhat.com>
Download mbox | patch
Permalink /patch/141336/
State Accepted
Delegated to: stephen hemminger
Headers show

Comments

Petr Sabata - Feb. 15, 2012, 4:02 p.m.
Just a minor correction of mqprio printf()'s.

Reported-by: Petr Písař <ppisar@redhat.com>
Signed-off-by: Petr Šabata <contyk@redhat.com>
---
 tc/q_mqprio.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/tc/q_mqprio.c b/tc/q_mqprio.c
index bf734a0..b2d8c12 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;
 }