Commit 6c99695d authored by David Ward's avatar David Ward Committed by Stephen Hemminger

tc: red, gred: Fix format specifier in burst size warning

burst is an unsigned value.
Signed-off-by: default avatarDavid Ward <david.ward@ll.mit.edu>
parent 9d9a67c7
...@@ -232,7 +232,7 @@ static int gred_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct n ...@@ -232,7 +232,7 @@ static int gred_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct n
return -1; return -1;
} }
if (parm >= 10) 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); "large.\n", burst);
opt.Wlog = parm; opt.Wlog = parm;
if ((parm = tc_red_eval_P(opt.qth_min, opt.qth_max, probability)) < 0) { if ((parm = tc_red_eval_P(opt.qth_min, opt.qth_max, probability)) < 0) {
......
...@@ -131,7 +131,7 @@ static int red_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nl ...@@ -131,7 +131,7 @@ static int red_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nl
return -1; return -1;
} }
if (parm >= 10) 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; opt.Wlog = parm;
if ((parm = tc_red_eval_P(opt.qth_min, opt.qth_max, probability)) < 0) { if ((parm = tc_red_eval_P(opt.qth_min, opt.qth_max, probability)) < 0) {
fprintf(stderr, "RED: failed to calculate probability.\n"); fprintf(stderr, "RED: failed to calculate probability.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment