* [PATCH] mac802154: Use pr_err(...) rather than printk(KERN_ERR ...)
@ 2013-10-30 7:28 Chen Weilong
2013-10-30 21:06 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Chen Weilong @ 2013-10-30 7:28 UTC (permalink / raw)
To: alex.bluesman.smirnov, dbaryshkov, davem
Cc: linux-zigbee-devel, netdev, dingtianhong
This change is inspired by checkpatch.
Signed-off-by: Weilong Chen <chenweilong@huawei.com>
---
net/mac802154/ieee802154_dev.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/net/mac802154/ieee802154_dev.c b/net/mac802154/ieee802154_dev.c
index b7c7f81..52ae664 100644
--- a/net/mac802154/ieee802154_dev.c
+++ b/net/mac802154/ieee802154_dev.c
@@ -174,8 +174,7 @@ ieee802154_alloc_device(size_t priv_data_len, struct ieee802154_ops *ops)
if (!ops || !ops->xmit || !ops->ed || !ops->start ||
!ops->stop || !ops->set_channel) {
- printk(KERN_ERR
- "undefined IEEE802.15.4 device operations\n");
+ pr_err("undefined IEEE802.15.4 device operations\n");
return NULL;
}
@@ -201,8 +200,7 @@ ieee802154_alloc_device(size_t priv_data_len, struct ieee802154_ops *ops)
phy = wpan_phy_alloc(priv_size);
if (!phy) {
- printk(KERN_ERR
- "failure to allocate master IEEE802.15.4 device\n");
+ pr_err("failure to allocate master IEEE802.15.4 device\n");
return NULL;
}
--
1.8.2.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mac802154: Use pr_err(...) rather than printk(KERN_ERR ...)
2013-10-30 7:28 [PATCH] mac802154: Use pr_err(...) rather than printk(KERN_ERR ...) Chen Weilong
@ 2013-10-30 21:06 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-10-30 21:06 UTC (permalink / raw)
To: chenweilong
Cc: alex.bluesman.smirnov, dbaryshkov, linux-zigbee-devel, netdev,
dingtianhong
From: Chen Weilong <chenweilong@huawei.com>
Date: Wed, 30 Oct 2013 15:28:07 +0800
> This change is inspired by checkpatch.
>
> Signed-off-by: Weilong Chen <chenweilong@huawei.com>
Applied to net-next, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-30 21:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-30 7:28 [PATCH] mac802154: Use pr_err(...) rather than printk(KERN_ERR ...) Chen Weilong
2013-10-30 21:06 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).