Skip to content

Commit

Permalink
mac802154: Use pr_err(...) rather than printk(KERN_ERR ...)
Browse files Browse the repository at this point in the history
This change is inspired by checkpatch.

Signed-off-by: Weilong Chen <chenweilong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Chen Weilong authored and David S. Miller committed Oct 30, 2013
1 parent 92b9ccd commit 83a1a7c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions net/mac802154/ieee802154_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit 83a1a7c

Please sign in to comment.