[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1431963314-56420-3-git-send-email-david.ward@ll.mit.edu>
Date: Mon, 18 May 2015 11:35:06 -0400
From: David Ward <david.ward@...mit.edu>
To: netdev@...r.kernel.org
Cc: David Ward <david.ward@...mit.edu>
Subject: [PATCH iproute2 02/10] tc: red, gred: Fix format specifier in burst size warning
burst is an unsigned value.
Signed-off-by: David Ward <david.ward@...mit.edu>
---
tc/q_gred.c | 2 +-
tc/q_red.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tc/q_gred.c b/tc/q_gred.c
index 625bcf9..d876f83 100644
--- a/tc/q_gred.c
+++ b/tc/q_gred.c
@@ -232,7 +232,7 @@ static int gred_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct n
return -1;
}
if (parm >= 10)
- fprintf(stderr, "GRED: WARNING. Burst %d seems to be too "
+ fprintf(stderr, "GRED: WARNING. Burst %u seems to be too "
"large.\n", burst);
opt.Wlog = parm;
if ((parm = tc_red_eval_P(opt.qth_min, opt.qth_max, probability)) < 0) {
diff --git a/tc/q_red.c b/tc/q_red.c
index 5a74c50..6555eb2 100644
--- a/tc/q_red.c
+++ b/tc/q_red.c
@@ -131,7 +131,7 @@ static int red_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nl
return -1;
}
if (parm >= 10)
- fprintf(stderr, "RED: WARNING. Burst %d seems to be too large.\n", burst);
+ fprintf(stderr, "RED: WARNING. Burst %u seems to be too large.\n", burst);
opt.Wlog = parm;
if ((parm = tc_red_eval_P(opt.qth_min, opt.qth_max, probability)) < 0) {
fprintf(stderr, "RED: failed to calculate probability.\n");
--
1.7.1
--
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