mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Anup Sharma <anupnewsmail@gmail.com>, zbr@ioremap.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers: w1: slaves: Drop unnecessary explicit casting
Date: Sun, 23 Apr 2023 15:38:19 +0200	[thread overview]
Message-ID: <6be75dac-0904-390d-023b-a533f79073ce@kernel.org> (raw)
In-Reply-To: <ZECFjQMLwnoYPMeL@yoga>

On 20/04/2023 02:21, Anup Sharma wrote:
> Provide correct specifiers while printing error logs to discard the use
> of unnecessary explicit casting.
> 
> Signed-off-by: Anup Sharma <anupnewsmail@gmail.com>
> ---
>  drivers/w1/slaves/w1_ds2433.c  | 6 +++---
>  drivers/w1/slaves/w1_ds28e04.c | 8 ++++----
>  2 files changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/w1/slaves/w1_ds2433.c b/drivers/w1/slaves/w1_ds2433.c
> index 0f72df15a024..ba441d42b0b0 100644
> --- a/drivers/w1/slaves/w1_ds2433.c
> +++ b/drivers/w1/slaves/w1_ds2433.c
> @@ -213,15 +213,15 @@ static ssize_t eeprom_write(struct file *filp, struct kobject *kobj,
>  #ifdef CONFIG_W1_SLAVE_DS2433_CRC
>  	/* can only write full blocks in cached mode */
>  	if ((off & W1_PAGE_MASK) || (count & W1_PAGE_MASK)) {
> -		dev_err(&sl->dev, "invalid offset/count off=%d cnt=%zd\n",
> -			(int)off, count);
> +		dev_err(&sl->dev, "invalid offset/count off=%pe cnt=%zd\n",
> +			off, count);

I don't think you tested this patch. Why do you think off is a pointer?

Best regards,
Krzysztof


      parent reply	other threads:[~2023-04-23 13:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-20  0:21 Anup Sharma
2023-04-20  2:35 ` kernel test robot
2023-04-20  6:29 ` kernel test robot
2023-04-23 13:38 ` Krzysztof Kozlowski [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=6be75dac-0904-390d-023b-a533f79073ce@kernel.org \
    --to=krzk@kernel.org \
    --cc=anupnewsmail@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zbr@ioremap.net \
    /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®