Skip to contentSkip to conversation

mac802154: fix following checkpath.pl warning Prefer pr_warn(... to pr_warning(...

PATCH Superseded Chen Weilong 2 participants 4 messages Dec 18, 2013 – Dec 22, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac802154: fix following checkpath.pl warning Prefer pr_warn(... to pr_warning(...

From: Weilong Chen <[email protected]>

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

---
 net/mac802154/wpan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac802154/wpan.c +1 -1
index e24bcf9..9e5cc67 100644
@@ -444,7 +444,7 @@ 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",
+		pr_warn("ieee802154: bad frame received (type = %d)\n",
 			   mac_cb_type(skb));
 		kfree_skb(skb);
 		return NET_RX_DROP;
Signature · 1 line
1.7.12
#1 lore raw

PATCH RESEND 1/1 mac802154: fix following checkpath.pl warning Prefer pr_warn(... to pr_warning(...

From: Weilong Chen <[email protected]>

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

---
 net/mac802154/wpan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/mac802154/wpan.c +2 -2
index e24bcf9..372d8a2 100644
@@ -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;
 	}

-- 1.7.12

maintainer
#3 lore raw
In reply to Chen Weilong

From: Chen Weilong <[email protected]>
Date: Wed, 18 Dec 2013 17:36:04 +0800

net/mac802154/wpan.c mac802154_subif_frame(struct mac802154_sub_if_data *sdata, struct sk_buff *skb) · line 448

Quoted 3 lines
net/mac802154/wpan.c +1 -1
-		pr_warning("ieee802154: bad frame received (type = %d)\n",
+		pr_warn("ieee802154: bad frame received (type = %d)\n",
 			   mac_cb_type(skb));

You have to fix up the indentation of the second line if you adjust the first line like this.