* [PATCH] staging: most: net: replace pr_err with netdev_err
@ 2026-04-29 3:29 Maha Maryam Javaid
2026-05-04 14:17 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Maha Maryam Javaid @ 2026-04-29 3:29 UTC (permalink / raw)
To: parthiban.veerasooran, christian.gromm
Cc: gregkh, linux-staging, linux-kernel, Maha Maryam Javaid
Replace pr_err() calls with netdev_err() in skb_to_mamac() to provide
better context by including the net device name in the error messages.
Signed-off-by: Maha Maryam Javaid <mahamaryamjavaid@gmail.com>
---
drivers/staging/most/net/net.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/most/net/net.c b/drivers/staging/most/net/net.c
index fffdb60cd230..fc1dcff107ec 100644
--- a/drivers/staging/most/net/net.c
+++ b/drivers/staging/most/net/net.c
@@ -81,18 +81,18 @@ static int skb_to_mamac(const struct sk_buff *skb, struct mbo *mbo)
unsigned int mdp_len = payload_len + MDP_HDR_LEN;
if (mdp_len < skb->len) {
- pr_err("drop: too large packet! (%u)\n", skb->len);
+ netdev_err(skb->dev, "drop: too large packet! (%u)\n", skb->len);
return -EINVAL;
}
if (mbo->buffer_length < mdp_len) {
- pr_err("drop: too small buffer! (%d for %d)\n",
- mbo->buffer_length, mdp_len);
+ netdev_err(skb->dev, "drop: too small buffer! (%d for %d)\n",
+ mbo->buffer_length, mdp_len);
return -EINVAL;
}
if (skb->len < ETH_HLEN) {
- pr_err("drop: too small packet! (%d)\n", skb->len);
+ netdev_err(skb->dev, "drop: too small packet! (%d)\n", skb->len);
return -EINVAL;
}
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: most: net: replace pr_err with netdev_err
2026-04-29 3:29 [PATCH] staging: most: net: replace pr_err with netdev_err Maha Maryam Javaid
@ 2026-05-04 14:17 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2026-05-04 14:17 UTC (permalink / raw)
To: Maha Maryam Javaid
Cc: parthiban.veerasooran, christian.gromm, linux-staging,
linux-kernel
On Tue, Apr 28, 2026 at 11:29:34PM -0400, Maha Maryam Javaid wrote:
> Replace pr_err() calls with netdev_err() in skb_to_mamac() to provide
> better context by including the net device name in the error messages.
>
> Signed-off-by: Maha Maryam Javaid <mahamaryamjavaid@gmail.com>
> ---
> drivers/staging/most/net/net.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/staging/most/net/net.c b/drivers/staging/most/net/net.c
> index fffdb60cd230..fc1dcff107ec 100644
> --- a/drivers/staging/most/net/net.c
> +++ b/drivers/staging/most/net/net.c
> @@ -81,18 +81,18 @@ static int skb_to_mamac(const struct sk_buff *skb, struct mbo *mbo)
> unsigned int mdp_len = payload_len + MDP_HDR_LEN;
>
> if (mdp_len < skb->len) {
> - pr_err("drop: too large packet! (%u)\n", skb->len);
> + netdev_err(skb->dev, "drop: too large packet! (%u)\n", skb->len);
> return -EINVAL;
> }
>
> if (mbo->buffer_length < mdp_len) {
> - pr_err("drop: too small buffer! (%d for %d)\n",
> - mbo->buffer_length, mdp_len);
> + netdev_err(skb->dev, "drop: too small buffer! (%d for %d)\n",
> + mbo->buffer_length, mdp_len);
> return -EINVAL;
> }
>
> if (skb->len < ETH_HLEN) {
> - pr_err("drop: too small packet! (%d)\n", skb->len);
> + netdev_err(skb->dev, "drop: too small packet! (%d)\n", skb->len);
> return -EINVAL;
> }
>
> --
> 2.34.1
>
>
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him
a patch that has triggered this response. He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created. Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.
You are receiving this message because of the following common error(s)
as indicated below:
- Your patch did not apply to any known trees that Greg is in control
of. Possibly this is because you made it against Linus's tree, not
the linux-next tree, which is where all of the development for the
next version of the kernel is at. Please refresh your patch against
the linux-next tree, or even better yet, the development tree
specified in the MAINTAINERS file for the subsystem you are submitting
a patch for, and resend it.
If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.
thanks,
greg k-h's patch email bot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-04 14:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-29 3:29 [PATCH] staging: most: net: replace pr_err with netdev_err Maha Maryam Javaid
2026-05-04 14:17 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox