提交 cfa626cb 编写于 作者: A Alexander Aring 提交者: Marcel Holtmann

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: NAlexander Aring <alex.aring@gmail.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 6001d522
......@@ -72,7 +72,7 @@ static void mac802154_xmit_worker(struct work_struct *work)
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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册