From: Arvind Yadav <arvind.yadav.cs@gmail.com>
To: Joe Perches <joe@perches.com>,
gregkh@linuxfoundation.org, jslaby@suse.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tty: n_gsm: pr_err() strings should end with newlines
Date: Mon, 9 Oct 2017 17:32:42 +0530 [thread overview]
Message-ID: <5b51d07b-9ce8-27d6-a1c6-1113961a456a@gmail.com> (raw)
In-Reply-To: <1507550442.3552.2.camel@perches.com>
Hi,
On Monday 09 October 2017 05:30 PM, Joe Perches wrote:
> On Mon, 2017-10-09 at 17:14 +0530, Arvind Yadav wrote:
>> pr_err() messages should end with a new-line to avoid other messages
>> being concatenated.
> []
>> diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c
> []
>> @@ -2788,7 +2788,7 @@ static int gsm_create_network(struct gsm_dlci *dlci, struct gsm_netconfig *nc)
>> net = alloc_netdev(sizeof(struct gsm_mux_net), netname,
>> NET_NAME_UNKNOWN, gsm_mux_net_init);
>> if (!net) {
>> - pr_err("alloc_netdev failed");
>> + pr_err("alloc_netdev failed\n");
>> return -ENOMEM;
>> }
>> net->mtu = dlci->gsm->mtu;
> You could just delete the pr_err instead.
>
> It's an unnecessary message as there would
> be a dump_stack() on the kvzalloc() in
> alloc_netdev() on any OOM failure.
You are right, We can delete. I will send updated patch.
>
>
~arvind
prev parent reply other threads:[~2017-10-09 12:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-09 11:44 Arvind Yadav
2017-10-09 12:00 ` Joe Perches
2017-10-09 12:02 ` Arvind Yadav [this message]
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=5b51d07b-9ce8-27d6-a1c6-1113961a456a@gmail.com \
--to=arvind.yadav.cs@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=joe@perches.com \
--cc=jslaby@suse.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®