Skip to content

Commit c17988a

Browse files
Yang Yingliangdavem330
authored andcommitted
net_sched: replace pr_warning with pr_warn
Prefer pr_warn(... to pr_warning(... Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d4dd8ae commit c17988a

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

net/sched/sch_cbq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,8 +1060,8 @@ static void cbq_normalize_quanta(struct cbq_sched_data *q, int prio)
10601060
}
10611061
if (cl->quantum <= 0 ||
10621062
cl->quantum > 32*qdisc_dev(cl->qdisc)->mtu) {
1063-
pr_warning("CBQ: class %08x has bad quantum==%ld, repaired.\n",
1064-
cl->common.classid, cl->quantum);
1063+
pr_warn("CBQ: class %08x has bad quantum==%ld, repaired.\n",
1064+
cl->common.classid, cl->quantum);
10651065
cl->quantum = qdisc_dev(cl->qdisc)->mtu/2 + 1;
10661066
}
10671067
}

net/sched/sch_dsmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ static struct sk_buff *dsmark_dequeue(struct Qdisc *sch)
303303
* and don't need yet another qdisc as a bypass.
304304
*/
305305
if (p->mask[index] != 0xff || p->value[index])
306-
pr_warning("dsmark_dequeue: unsupported protocol %d\n",
307-
ntohs(skb->protocol));
306+
pr_warn("dsmark_dequeue: unsupported protocol %d\n",
307+
ntohs(skb->protocol));
308308
break;
309309
}
310310

net/sched/sch_gred.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ static inline int gred_change_table_def(struct Qdisc *sch, struct nlattr *dps)
370370

371371
for (i = table->DPs; i < MAX_DPs; i++) {
372372
if (table->tab[i]) {
373-
pr_warning("GRED: Warning: Destroying "
374-
"shadowed VQ 0x%x\n", i);
373+
pr_warn("GRED: Warning: Destroying shadowed VQ 0x%x\n",
374+
i);
375375
gred_destroy_vq(table->tab[i]);
376376
table->tab[i] = NULL;
377377
}

net/sched/sch_htb.c

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ static s64 htb_do_events(struct htb_sched *q, const int level,
712712

713713
/* too much load - let's continue after a break for scheduling */
714714
if (!(q->warned & HTB_WARN_TOOMANYEVENTS)) {
715-
pr_warning("htb: too many events!\n");
715+
pr_warn("htb: too many events!\n");
716716
q->warned |= HTB_WARN_TOOMANYEVENTS;
717717
}
718718

@@ -1488,15 +1488,13 @@ static int htb_change_class(struct Qdisc *sch, u32 classid,
14881488
cl->quantum = min_t(u64, quantum, INT_MAX);
14891489

14901490
if (!hopt->quantum && cl->quantum < 1000) {
1491-
pr_warning(
1492-
"HTB: quantum of class %X is small. Consider r2q change.\n",
1493-
cl->common.classid);
1491+
pr_warn("HTB: quantum of class %X is small. Consider r2q change.\n",
1492+
cl->common.classid);
14941493
cl->quantum = 1000;
14951494
}
14961495
if (!hopt->quantum && cl->quantum > 200000) {
1497-
pr_warning(
1498-
"HTB: quantum of class %X is big. Consider r2q change.\n",
1499-
cl->common.classid);
1496+
pr_warn("HTB: quantum of class %X is big. Consider r2q change.\n",
1497+
cl->common.classid);
15001498
cl->quantum = 200000;
15011499
}
15021500
if (hopt->quantum)

0 commit comments

Comments
 (0)