diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-10-26 11:37:10 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-26 19:24:04 +0300 |
commit | cfa626cb3725101fd1853c2cab857aabfd78274b (patch) | |
tree | 66d02244a5b7a0dc3b218a5943cfa9aa1818b461 /net/mac802154/tx.c | |
parent | 6001d5223dd458e4f0063df2a24762eb2a619b17 (diff) | |
download | linux-cfa626cb3725101fd1853c2cab857aabfd78274b.tar.xz |
mac802154: tx: use netdev print helpers
This patch replace the pr_foo printout function to netdev_foo printout
function. Inside the xmit handling, the interface is already known.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/tx.c')
-rw-r--r-- | net/mac802154/tx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac802154/tx.c b/net/mac802154/tx.c index 44390419af86..d39c7d946bc3 100644 --- a/net/mac802154/tx.c +++ b/net/mac802154/tx.c @@ -72,7 +72,7 @@ err_tx: ieee802154_wake_queue(&local->hw); rtnl_unlock(); kfree_skb(skb); - pr_debug("transmission failed\n"); + netdev_dbg(skb->dev, "transmission failed\n"); } static netdev_tx_t @@ -137,7 +137,7 @@ netdev_tx_t mac802154_wpan_xmit(struct sk_buff *skb, struct net_device *dev) rc = mac802154_llsec_encrypt(&sdata->sec, skb); if (rc) { - pr_warn("encryption failed: %i\n", rc); + netdev_warn(dev, "encryption failed: %i\n", rc); kfree_skb(skb); return NETDEV_TX_OK; } |