From: Joe Perches <joe@perches.com>
To: Arvind Yadav <arvind.yadav.cs@gmail.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, 09 Oct 2017 05:00:42 -0700 [thread overview]
Message-ID: <1507550442.3552.2.camel@perches.com> (raw)
In-Reply-To: <af800ac59ede3886e2b374b3af26789562bfc8ea.1507549348.git.arvind.yadav.cs@gmail.com>
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.
next prev parent reply other threads:[~2017-10-09 12:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-09 11:44 [PATCH] tty: n_gsm: pr_err() strings should end with newlines Arvind Yadav
2017-10-09 12:00 ` Joe Perches [this message]
2017-10-09 12:02 ` Arvind Yadav
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=1507550442.3552.2.camel@perches.com \
--to=joe@perches.com \
--cc=arvind.yadav.cs@gmail.com \
--cc=gregkh@linuxfoundation.org \
--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 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.