From: Greg KH <gregkh@linuxfoundation.org>
To: Benjamin Romer <benjamin.romer@unisys.com>
Cc: Jes.Sorensen@redhat.com, sparmaintainer@unisys.com,
driverdev-devel@linuxdriverproject.org,
Tim Sell <Timothy.Sell@unisys.com>
Subject: Re: [PATCH 2/7] staging: unisys: add simple error-check into visornic receive path
Date: Fri, 24 Jul 2015 13:36:57 -0700 [thread overview]
Message-ID: <20150724203657.GB15778@kroah.com> (raw)
In-Reply-To: <1437753625-28701-3-git-send-email-benjamin.romer@unisys.com>
On Fri, Jul 24, 2015 at 12:00:20PM -0400, Benjamin Romer wrote:
> From: Tim Sell <Timothy.Sell@unisys.com>
>
> Add an error check here for use with dynamic debugging.
>
> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
> Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
> ---
> drivers/staging/unisys/visornic/visornic_main.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c
> index aeecb14..6ce3fc2 100644
> --- a/drivers/staging/unisys/visornic/visornic_main.c
> +++ b/drivers/staging/unisys/visornic/visornic_main.c
> @@ -1253,13 +1253,13 @@ visornic_rx(struct uiscmdrsp *cmdrsp)
> curr->data_len = 0;
> off += currsize;
> }
> -#ifdef DEBUG
> /* assert skb->len == off */
> if (skb->len != off) {
> dev_err(&devdata->netdev->dev,
> - "%s something wrong; skb->len:%d != off:%d\n",
> - netdev->name, skb->len, off);
> + "something wrong; skb->len:%d != off:%d\n",
> + skb->len, off);
The changelog comment doesn't match what you are doing here.
Also, shouldn't this be netdev_err() instead?
thanks,
greg k-h
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
next prev parent reply other threads:[~2015-07-24 20:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-24 16:00 [PATCH 0/7] staging: unisys: visornic testing fix series Benjamin Romer
2015-07-24 16:00 ` [PATCH 1/7] staging: unisys: visornic: fix serialization mechanism around usage atomic Benjamin Romer
2015-07-24 20:35 ` Greg KH
2015-07-24 23:11 ` Neil Horman
2015-07-24 16:00 ` [PATCH 2/7] staging: unisys: add simple error-check into visornic receive path Benjamin Romer
2015-07-24 20:36 ` Greg KH [this message]
2015-07-24 16:00 ` [PATCH 3/7] staging: unisys: Process more than one response per check Benjamin Romer
2015-07-24 16:00 ` [PATCH 4/7] staging: unisys: visornic - ensure proper net locking in tx reset logic Benjamin Romer
2015-07-24 16:00 ` [PATCH 5/7] staging: unisys: visornic - check visorchannel_signalinsert/remove failures Benjamin Romer
2015-07-24 16:00 ` [PATCH 6/7] staging: unisys: visornic - consolidate+simplify xmit watermark checks Benjamin Romer
2015-07-24 20:43 ` Greg KH
2015-07-27 8:17 ` Dan Carpenter
2015-07-24 16:00 ` [PATCH 7/7] staging: unisys: visornic - prevent NETDEV WATCHDOG timeouts after IO recovery Benjamin Romer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150724203657.GB15778@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=Jes.Sorensen@redhat.com \
--cc=Timothy.Sell@unisys.com \
--cc=benjamin.romer@unisys.com \
--cc=driverdev-devel@linuxdriverproject.org \
--cc=sparmaintainer@unisys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.