diff mbox

[resend,net-next] mac802154: fix following checkpath.pl warning Prefer pr_warn(... to pr_warning(...

Message ID 52B24A52.9010105@huawei.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

chenweilong Dec. 19, 2013, 1:22 a.m. UTC
From: Weilong Chen <chenweilong@huawei.com>

This patch fixes checkpath.pl:
 WARNING: Prefer pr_warn(... to pr_warning(...
 #447: FILE: ./wpan.c:447:

Signed-off-by: Weilong Chen <chenweilong@huawei.com>
---
 net/mac802154/wpan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 1.7.12

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

David Miller Dec. 22, 2013, 11:53 p.m. UTC | #1
From: chenweilong <chenweilong@huawei.com>
Date: Thu, 19 Dec 2013 09:22:26 +0800

> From: Weilong Chen <chenweilong@huawei.com>
> 
> This patch fixes checkpath.pl:
>  WARNING: Prefer pr_warn(... to pr_warning(...
>  #447: FILE: ./wpan.c:447:
> 
> Signed-off-by: Weilong Chen <chenweilong@huawei.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/mac802154/wpan.c b/net/mac802154/wpan.c
index e24bcf9..372d8a2 100644
--- a/net/mac802154/wpan.c
+++ b/net/mac802154/wpan.c
@@ -444,8 +444,8 @@  mac802154_subif_frame(struct mac802154_sub_if_data *sdata, struct sk_buff *skb)
 	case IEEE802154_FC_TYPE_DATA:
 		return mac802154_process_data(sdata->dev, skb);
 	default:
-		pr_warning("ieee802154: bad frame received (type = %d)\n",
-			   mac_cb_type(skb));
+		pr_warn("ieee802154: bad frame received (type = %d)\n",
+			mac_cb_type(skb));
 		kfree_skb(skb);
 		return NET_RX_DROP;
 	}