All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Wahl <steve.wahl@hpe.com>
To: trix@redhat.com
Cc: robinmholt@gmail.com, steve.wahl@hpe.com, mike.travis@hpe.com,
	arnd@arndb.de, gregkh@linuxfoundation.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sgi-xp: remove h from printk format specifier
Date: Mon, 25 Jan 2021 09:29:22 -0600	[thread overview]
Message-ID: <20210125152922.GQ144275@swahl-home.5wahls.com> (raw)
In-Reply-To: <20210123160003.1777766-1-trix@redhat.com>

Reviewed-By: Steve Wahl <steve.wahl@hpe.com>

On Sat, Jan 23, 2021 at 08:00:03AM -0800, trix@redhat.com wrote:
> From: Tom Rix <trix@redhat.com>
> 
> This change fixes the checkpatch warning described in this commit
> commit cbacb5ab0aa0 ("docs: printk-formats: Stop encouraging use of
>   unnecessary %h[xudi] and %hh[xudi]")
> 
> Standard integer promotion is already done and %hx and %hhx is useless
> so do not encourage the use of %hh[xudi] or %h[xudi].
> 
> Signed-off-by: Tom Rix <trix@redhat.com>
> ---
>  drivers/misc/sgi-xp/xpnet.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/misc/sgi-xp/xpnet.c b/drivers/misc/sgi-xp/xpnet.c
> index 23837d0d6f4a..2508f83bdc3f 100644
> --- a/drivers/misc/sgi-xp/xpnet.c
> +++ b/drivers/misc/sgi-xp/xpnet.c
> @@ -208,7 +208,7 @@ xpnet_receive(short partid, int channel, struct xpnet_message *msg)
>  	} else {
>  		dst = (void *)((u64)skb->data & ~(L1_CACHE_BYTES - 1));
>  		dev_dbg(xpnet, "transferring buffer to the skb->data area;\n\t"
> -			"xp_remote_memcpy(0x%p, 0x%p, %hu)\n", dst,
> +			"xp_remote_memcpy(0x%p, 0x%p, %u)\n", dst,
>  					  (void *)msg->buf_pa, msg->size);
>  
>  		ret = xp_remote_memcpy(xp_pa(dst), msg->buf_pa, msg->size);
> @@ -218,7 +218,7 @@ xpnet_receive(short partid, int channel, struct xpnet_message *msg)
>  			 * !!! appears in_use and we can't just call
>  			 * !!! dev_kfree_skb.
>  			 */
> -			dev_err(xpnet, "xp_remote_memcpy(0x%p, 0x%p, 0x%hx) "
> +			dev_err(xpnet, "xp_remote_memcpy(0x%p, 0x%p, 0x%x) "
>  				"returned error=0x%x\n", dst,
>  				(void *)msg->buf_pa, msg->size, ret);
>  
> -- 
> 2.27.0
> 

-- 
Steve Wahl, Hewlett Packard Enterprise

      reply	other threads:[~2021-01-25 16:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-23 16:00 [PATCH] sgi-xp: remove h from printk format specifier trix
2021-01-25 15:29 ` Steve Wahl [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=20210125152922.GQ144275@swahl-home.5wahls.com \
    --to=steve.wahl@hpe.com \
    --cc=arnd@arndb.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mike.travis@hpe.com \
    --cc=robinmholt@gmail.com \
    --cc=trix@redhat.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 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.