From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, Andy Whitcroft <apw@canonical.com>,
Joe Perches <joe@perches.com>,
Dwaipayan Ray <dwaipayanray1@gmail.com>,
Lukas Bulwahn <lukas.bulwahn@gmail.com>
Subject: Re: [PATCH v1 1/1] checkpatch: Add dev_err_probe() to the list of Log Functions
Date: Fri, 1 Dec 2023 18:17:50 +0200 [thread overview]
Message-ID: <ZWoHLkcPk2084gQH@smile.fi.intel.com> (raw)
In-Reply-To: <3c709cc1-0da8-4d23-9f75-8c18d4d18779@roeck-us.net>
On Fri, Dec 01, 2023 at 08:01:28AM -0800, Guenter Roeck wrote:
> On 12/1/23 07:14, Andy Shevchenko wrote:
> > dev_err_probe() is missing in the list of Log Functions and hence
> > checkpatch issues a warning in the cases when any other function
> > in use won't trigger it. Add dev_err_probe() to the list to behave
> > consistently.
...
> Not sure if I agree. The difference here is that dev_err_probe()
> has two additional parameters ahead of the string. I would very much prefer
> to have those two additional parameters on a separate line if the string is
> too long to fit in 100 columns with those two parameters on the same line.
> In other words, I very much prefer
>
> dev_err_probe(dev, -ESOMETHING,
> "very long string");
> over
> dev_err_probe(dev, -ESOMETHING, "very long string");
>
> and I don't really think that the latter has any benefits.
>
> Also note that other dev_xxx() log functions are not included in the above test
> and would still generate warnings. Accepting
>
> dev_err_probe(dev, -ESOMETHING, "very long string");
> but not
> dev_err(dev, "very long string");
They are included, see the line previous to the added one.
(Regexp covers something like x_y_()* and x_*() families with the explicitly
listed * suffixes.)
That's why _this_ change makes it consistent.
> doesn't really make sense to me.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2023-12-01 16:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-01 15:14 Andy Shevchenko
2023-12-01 16:01 ` Guenter Roeck
2023-12-01 16:17 ` Andy Shevchenko [this message]
2023-12-01 16:20 ` Andy Shevchenko
2023-12-01 16:34 ` Guenter Roeck
2023-12-01 17:07 ` Andy Shevchenko
2023-12-01 22:29 ` Joe Perches
2023-12-04 12:59 ` Andy Shevchenko
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=ZWoHLkcPk2084gQH@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=apw@canonical.com \
--cc=dwaipayanray1@gmail.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=lukas.bulwahn@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 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®