mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
staging: most: net: replace pr_err with netdev_err
Replace remaining pr_err() calls with netdev_err() where a net device is available to provide better context in error messages. Lines in skb_to_mep() are left as pr_err() since no net device context is available there. Signed-off-by: Maha Maryam Javaid <mahamaryamjavaid@gmail.com> Link: https://patch.msgid.link/20260508060438.20156-1-mahamaryamjavaid@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bd2e75c827
commit
a5b28f0d8f
|
|
@ -329,13 +329,13 @@ static int comp_probe_channel(struct most_interface *iface, int channel_idx,
|
|||
} else {
|
||||
ch = ccfg->direction == MOST_CH_TX ? &nd->tx : &nd->rx;
|
||||
if (ch->linked) {
|
||||
pr_err("direction is allocated\n");
|
||||
netdev_err(nd->dev, "direction is allocated\n");
|
||||
ret = -EINVAL;
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
if (register_netdev(nd->dev)) {
|
||||
pr_err("register_netdev() failed\n");
|
||||
netdev_err(nd->dev, "register_netdev() failed\n");
|
||||
ret = -EINVAL;
|
||||
goto unlock;
|
||||
}
|
||||
|
|
@ -454,7 +454,7 @@ static int comp_rx_data(struct mbo *mbo)
|
|||
|
||||
if (!skb) {
|
||||
dev->stats.rx_dropped++;
|
||||
pr_err_once("drop packet: no memory for skb\n");
|
||||
netdev_err_once(dev, "drop packet: no memory for skb\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user