From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C9E11A2550; Sat, 11 Jan 2025 12:53:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.175.24.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736600029; cv=none; b=cki32iG04WDRatdw1oW106kYwJ2w9fd6yPaTkFTbB5Rd/xbDbruXAxBRKGXcZdNTAOBDu4+GAzLAwiVfMDvsxuphXGgQbOJH7JoEQnMYp881DCbux8SgnrEVhD/6iiujMJkMXZlKVi7t5Q+qFdiQQHbJ60hJ0fpSWj1UBv3FnSc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736600029; c=relaxed/simple; bh=8ISbWYr7tnF59VVou7AT5BvE6+p4jAT9RETJVFNv5g4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JrWS77GEx69kNQnH++yEvNoJkSk8SlWptONIYRFzTJyciQeGZsI2KfAsAyPwbfVSPhrUZY/YJU+HO57QwjoL4gCqhEQzBwamEHJMbK2eDSC5JnRR8luGTVEzZwwJXSiCPB8jlImAkTBqQuyKO6OnNFL90F7VG7aCEMQgHW3b0oA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.client-ip=193.175.24.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1tWaRL-0006NY-00; Sat, 11 Jan 2025 13:18:07 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 03730C072D; Sat, 11 Jan 2025 13:04:00 +0100 (CET) Date: Sat, 11 Jan 2025 13:03:59 +0100 From: Thomas Bogendoerfer To: liujing Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: Fix the wrong format specifier Message-ID: References: <20241204092338.6356-1-liujing@cmss.chinamobile.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 > > 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 ]