From: David Ward Date: Mon, 18 May 2015 15:35:06 +0000 (-0400) Subject: tc: red, gred: Fix format specifier in burst size warning X-Git-Tag: v4.1.0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c99695da283677b04675bd8a33a12fdb89b1048;p=thirdparty%2Fiproute2.git tc: red, gred: Fix format specifier in burst size warning burst is an unsigned value. Signed-off-by: David Ward --- diff --git a/tc/q_gred.c b/tc/q_gred.c index 625bcf96a..d876f83fe 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 5a74c5006..6555eb2a8 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");