From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: "Joe Perches" <joe@perches.com>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
"Nuno Sá" <nuno.sa@analog.com>,
"Lars-Peter Clausen" <lars@metafoo.de>
Subject: Re: [PATCH v2 1/3] iio: temperature: ltc2983: Don't hard code defined constants in messages
Date: Thu, 10 Feb 2022 15:54:37 +0200 [thread overview]
Message-ID: <YgUZHW6MHqo468X+@smile.fi.intel.com> (raw)
In-Reply-To: <20220207204421.7f905aa5@jic23-huawei>
On Mon, Feb 07, 2022 at 08:44:21PM +0000, Jonathan Cameron wrote:
> On Mon, 7 Feb 2022 19:21:25 +0200
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
>
> > On Mon, Feb 07, 2022 at 08:37:55AM -0800, Joe Perches wrote:
> > > On Mon, 2022-02-07 at 12:48 +0200, Andy Shevchenko wrote:
> > > > In a couple of messages the constants, which have their definitions,
> > > > are hard coded into the message text. Unhardcode them.
> > >
> > > Found by inspection or tool?
> >
> > Does it matter? No, a side effect of the following patch.
> >
> > ...
> >
> > > > + dev_err(dev, "Steinhart sensors size(%zu) must be %d", new_custom->size,
> > > > + LTC2983_CUSTOM_STEINHART_SIZE);
> > >
> > > probably better using "%u" and not "%d"
> > >
> > > and better with a \n termination too.
> >
> > I think it would be a separate change if we wish so. Let Jonathan to tell what
> > to do here.
> >
> Either way is fine by me. I tend to be a little flexible of trivial fixes
> in patches that are as simple as this one.
v3 has been just sent.
--
With Best Regards,
Andy Shevchenko
prev parent reply other threads:[~2022-02-10 13:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-07 10:48 [PATCH v2 1/3] iio: temperature: ltc2983: Don't hard code defined constants in messages Andy Shevchenko
2022-02-07 10:48 ` [PATCH v2 2/3] iio: temperature: ltc2983: Use single error path to put OF node Andy Shevchenko
2022-02-07 10:48 ` [PATCH v2 3/3] iio: temperature: ltc2983: Make use of device properties Andy Shevchenko
2022-02-07 16:37 ` [PATCH v2 1/3] iio: temperature: ltc2983: Don't hard code defined constants in messages Joe Perches
2022-02-07 17:21 ` Andy Shevchenko
2022-02-07 17:29 ` Joe Perches
2022-02-07 20:44 ` Jonathan Cameron
2022-02-10 13:54 ` Andy Shevchenko [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=YgUZHW6MHqo468X+@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=jic23@kernel.org \
--cc=joe@perches.com \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.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