[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <52B7E8CC.50605@huawei.com>
Date: Mon, 23 Dec 2013 15:39:56 +0800
From: Yang Yingliang <yangyingliang@...wei.com>
To: Joe Perches <joe@...ches.com>
CC: <davem@...emloft.net>, <netdev@...r.kernel.org>
Subject: Re: [PATCH resend net-next 1/2] net_sched: replace pr_warning with
pr_warn
On 2013/12/23 9:20, Joe Perches wrote:
> On Mon, 2013-12-23 at 09:06 +0800, Yang Yingliang wrote:
>> Prefer pr_warn(... to pr_warning(...
>
> Couple of trivial comments:
>
>> diff --git a/net/sched/sch_dsmark.c b/net/sched/sch_dsmark.c
> []
>> @@ -303,8 +303,8 @@ static struct sk_buff *dsmark_dequeue(struct Qdisc *sch)
>> * and don't need yet another qdisc as a bypass.
>> */
>> if (p->mask[index] != 0xff || p->value[index])
>> - pr_warning("dsmark_dequeue: unsupported protocol %d\n",
>> - ntohs(skb->protocol));
>> + pr_warn("dsmark_dequeue: unsupported protocol %d\n",
>> + ntohs(skb->protocol));
>
> When converting messages with embedded function names,
> consider using "%s: ...", __func__
>
>> diff --git a/net/sched/sch_gred.c b/net/sched/sch_gred.c
> []
>> @@ -370,8 +370,8 @@ static inline int gred_change_table_def(struct Qdisc *sch, struct nlattr *dps)
>>
>> for (i = table->DPs; i < MAX_DPs; i++) {
>> if (table->tab[i]) {
>> - pr_warning("GRED: Warning: Destroying "
>> - "shadowed VQ 0x%x\n", i);
>> + pr_warn("GRED: Warning: Destroying "
>> + "shadowed VQ 0x%x\n", i);
>
> When converting formats split across multiple lines,
> please coalesce the format fragments like:
>
> pr_warn("GRED: Warning: Destroying shadowed V0 0x%x\n",
> i);
>
>
>
>
OK, thanks!
--
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