From: Maha Maryam Javaid Date: Fri, 8 May 2026 06:04:38 +0000 (+0500) Subject: staging: most: net: replace pr_err with netdev_err X-Git-Tag: v7.2-rc1~66^2~66 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a5b28f0d8f7c323d3e2184599f438f01af3308a8;p=thirdparty%2Fkernel%2Fstable.git 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 Link: https://patch.msgid.link/20260508060438.20156-1-mahamaryamjavaid@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/most/net/net.c b/drivers/staging/most/net/net.c index 15fa2e410e4c9..e6e4498d33ab1 100644 --- a/drivers/staging/most/net/net.c +++ b/drivers/staging/most/net/net.c @@ -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; }