tc: red, gred: Fix format specifier in burst size warning
burst is an unsigned value. Signed-off-by: David Ward <david.ward@ll.mit.edu>
This commit is contained in:
parent
9d9a67c756
commit
6c99695da2
|
|
@ -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
|
||||||
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");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue