From: "Petr Šabata" <contyk@redhat.com>
To: netdev@vger.kernel.org, ppisar@redhat.com
Cc: "Petr Šabata" <contyk@redhat.com>
Subject: [PATCH] iproute2: tc - mqprio formatted print fix
Date: Wed, 15 Feb 2012 17:02:33 +0100 [thread overview]
Message-ID: <1329321753-18081-1-git-send-email-contyk@redhat.com> (raw)
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
reply other threads:[~2012-02-15 16:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1329321753-18081-1-git-send-email-contyk@redhat.com \
--to=contyk@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=ppisar@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).