From: Jiri Slaby <jslaby@suse.cz>
To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>, gregkh@linuxfoundation.org
Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tty: serial: serial_core.c: printk replacement
Date: Wed, 30 Jul 2014 16:37:52 +0200 [thread overview]
Message-ID: <53D90340.3010000@suse.cz> (raw)
In-Reply-To: <1406729236-19887-1-git-send-email-sudipm.mukherjee@gmail.com>
On 07/30/2014, 04:07 PM, Sudip Mukherjee wrote:
> printk replaced with corresponding dev_*
> fixed two broken user-visible strings used by the corresponding printk
>
>
> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
> ---
> drivers/tty/serial/serial_core.c | 19 ++++++++++---------
> 1 file changed, 10 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
> index 8bb19da..ef48d0f 100644
> --- a/drivers/tty/serial/serial_core.c
> +++ b/drivers/tty/serial/serial_core.c
...
> @@ -1974,8 +1974,8 @@ int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport)
> for (tries = 3; !ops->tx_empty(uport) && tries; tries--)
> msleep(10);
> if (!tries)
> - printk(KERN_ERR "%s%s%s%d: Unable to drain "
> - "transmitter\n",
> + dev_err(uport->dev,
> + "%s%s%s%d: Unable to drain transmitter\n",
> uport->dev ? dev_name(uport->dev) : "",
Hi, this does not look correct. You use uport->dev, but there is a test
whether it is NULL in the parameters.
You would have to investigate if and when uport->dev can be NULL and
document it in the commit log above.
thanks,
--
js
suse labs
next prev parent reply other threads:[~2014-07-30 14:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <[PATCH] tty: serial: serial_core.c: printk replacement>
2014-07-30 14:07 ` [PATCH] tty: serial: serial_core.c: printk replacement Sudip Mukherjee
2014-07-30 14:37 ` Jiri Slaby [this message]
2014-07-30 14:52 ` Sudip Mukherjee
2014-07-31 13:50 ` Sudip Mukherjee
2014-08-05 12:35 Sudip Mukherjee
2014-08-18 12:25 ` Jiri Slaby
2014-08-19 5:36 ` Sudip Mukherjee
-- strict thread matches above, loose matches on Subject: below --
2014-07-28 14:58 Sudip Mukherjee
2014-07-28 15:21 ` Greg KH
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=53D90340.3010000@suse.cz \
--to=jslaby@suse.cz \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=sudipm.mukherjee@gmail.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.