Skip to content

Commit cfa626c

Browse files
alexaringholtmann
authored andcommitted
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 <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 6001d52 commit cfa626c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/mac802154/tx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static void mac802154_xmit_worker(struct work_struct *work)
7272
ieee802154_wake_queue(&local->hw);
7373
rtnl_unlock();
7474
kfree_skb(skb);
75-
pr_debug("transmission failed\n");
75+
netdev_dbg(skb->dev, "transmission failed\n");
7676
}
7777

7878
static netdev_tx_t
@@ -137,7 +137,7 @@ netdev_tx_t mac802154_wpan_xmit(struct sk_buff *skb, struct net_device *dev)
137137

138138
rc = mac802154_llsec_encrypt(&sdata->sec, skb);
139139
if (rc) {
140-
pr_warn("encryption failed: %i\n", rc);
140+
netdev_warn(dev, "encryption failed: %i\n", rc);
141141
kfree_skb(skb);
142142
return NETDEV_TX_OK;
143143
}

0 commit comments

Comments
 (0)