DORMANTno replies

[PATCH] iproute2: tc - mqprio formatted print fix

From: Petr Šabata <hidden>
Date: 2012-02-15 16:06:09
Subsystem: the rest · Maintainer: Linus Torvalds

Just a minor correction of mqprio printf()'s.

Reported-by: Petr Písař <redacted>
Signed-off-by: Petr Šabata <redacted>
---
 tc/q_mqprio.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
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;
 }
-- 
1.7.7.6
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help