mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: liujing <liujing@cmss.chinamobile.com>
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] MIPS: Fix the wrong format specifier
Date: Sat, 11 Jan 2025 13:03:59 +0100	[thread overview]
Message-ID: <Z4JeL9eqG2HEuZHW@alpha.franken.de> (raw)
In-Reply-To: <20241204092338.6356-1-liujing@cmss.chinamobile.com>

On Wed, Dec 04, 2024 at 05:23:38PM +0800, liujing wrote:
> Make a minor change to eliminate a static checker warning. The type
> of cpu is unsigned int, so the correct format specifier should be
> %u instead of %d.
> 
> Signed-off-by: liujing <liujing@cmss.chinamobile.com>
> 
> diff --git a/arch/mips/kernel/cevt-bcm1480.c b/arch/mips/kernel/cevt-bcm1480.c
> index d39a2963b451..2a14dc4ee57e 100644
> --- a/arch/mips/kernel/cevt-bcm1480.c
> +++ b/arch/mips/kernel/cevt-bcm1480.c
> @@ -103,7 +103,7 @@ void sb1480_clockevent_init(void)
>  
>  	BUG_ON(cpu > 3);	/* Only have 4 general purpose timers */
>  
> -	sprintf(name, "bcm1480-counter-%d", cpu);
> +	sprintf(name, "bcm1480-counter-%u", cpu);
>  	cd->name		= name;
>  	cd->features		= CLOCK_EVT_FEAT_PERIODIC |
>  				  CLOCK_EVT_FEAT_ONESHOT;
> -- 
> 2.27.0

applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

      reply	other threads:[~2025-01-11 12:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-04  9:23 liujing
2025-01-11 12:03 ` Thomas Bogendoerfer [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=Z4JeL9eqG2HEuZHW@alpha.franken.de \
    --to=tsbogend@alpha.franken.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=liujing@cmss.chinamobile.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®