aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac802154
diff options
context:
space:
mode:
authorChen Weilong <chenweilong@huawei.com>2013-10-30 03:28:07 -0400
committerDavid S. Miller <davem@davemloft.net>2013-10-30 17:05:44 -0400
commit83a1a7ce600b21611753b2265b6469651a722013 (patch)
tree33c64554d74c819dc0f87e38936bb929409ef886 /net/mac802154
parent92b9ccd34a9053c628d230fe27a7e0c10179910f (diff)
mac802154: Use pr_err(...) rather than printk(KERN_ERR ...)
This change is inspired by checkpatch. Signed-off-by: Weilong Chen <chenweilong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac802154')
-rw-r--r--net/mac802154/ieee802154_dev.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/mac802154/ieee802154_dev.c b/net/mac802154/ieee802154_dev.c
index b7c7f815deae..52ae6646a411 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)
174 174
175 if (!ops || !ops->xmit || !ops->ed || !ops->start || 175 if (!ops || !ops->xmit || !ops->ed || !ops->start ||
176 !ops->stop || !ops->set_channel) { 176 !ops->stop || !ops->set_channel) {
177 printk(KERN_ERR 177 pr_err("undefined IEEE802.15.4 device operations\n");
178 "undefined IEEE802.15.4 device operations\n");
179 return NULL; 178 return NULL;
180 } 179 }
181 180
@@ -201,8 +200,7 @@ ieee802154_alloc_device(size_t priv_data_len, struct ieee802154_ops *ops)
201 200
202 phy = wpan_phy_alloc(priv_size); 201 phy = wpan_phy_alloc(priv_size);
203 if (!phy) { 202 if (!phy) {
204 printk(KERN_ERR 203 pr_err("failure to allocate master IEEE802.15.4 device\n");
205 "failure to allocate master IEEE802.15.4 device\n");
206 return NULL; 204 return NULL;
207 } 205 }
208 206