* [PATCH] iproute2: tc - mqprio formatted print fix
@ 2012-02-15 16:02 Petr Šabata
0 siblings, 0 replies; only message in thread
From: Petr Šabata @ 2012-02-15 16:02 UTC (permalink / raw)
To: netdev, ppisar; +Cc: Petr Šabata
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(-)
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-15 16:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-15 16:02 [PATCH] iproute2: tc - mqprio formatted print fix Petr Šabata
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).