lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1329321753-18081-1-git-send-email-contyk@redhat.com>
Date:	Wed, 15 Feb 2012 17:02:33 +0100
From:	Petr Šabata <contyk@...hat.com>
To:	netdev@...r.kernel.org, ppisar@...hat.com
Cc:	Petr Šabata <contyk@...hat.com>
Subject: [PATCH] iproute2: tc - mqprio formatted print fix

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

Reported-by: Petr Písař <ppisar@...hat.com>
Signed-off-by: Petr Šabata <contyk@...hat.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

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ