From nobody Sun Apr 26 08:22:11 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEA1FC43334 for ; Tue, 21 Jun 2022 08:15:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348036AbiFUIP2 (ORCPT ); Tue, 21 Jun 2022 04:15:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbiFUIP1 (ORCPT ); Tue, 21 Jun 2022 04:15:27 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3DEBC237F2; Tue, 21 Jun 2022 01:15:26 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 32E821E80D50; Tue, 21 Jun 2022 16:15:25 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aZ1jwiaVgXqG; Tue, 21 Jun 2022 16:15:22 +0800 (CST) Received: from localhost.localdomain (unknown [112.64.61.97]) (Authenticated sender: jiaming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id A204B1E80D2D; Tue, 21 Jun 2022 16:15:21 +0800 (CST) From: Zhang Jiaming To: rth@twiddle.net, ink@jurassic.park.msu.ru, mattst88@gmail.com Cc: linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, liqiong@nfschina.com, renyu@nfschina.com, Zhang Jiaming Subject: [PATCH] alpha: Add some spaces to ensure format specification Date: Tue, 21 Jun 2022 16:15:06 +0800 Message-Id: <20220621081506.50096-1-jiaming@nfschina.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add a space after ','. Add spaces around the '=3D', '>' and '=3D=3D'. Signed-off-by: Zhang Jiaming --- arch/alpha/boot/stdio.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/alpha/boot/stdio.c b/arch/alpha/boot/stdio.c index 60f73ccd2e89..e6d1ebff4209 100644 --- a/arch/alpha/boot/stdio.c +++ b/arch/alpha/boot/stdio.c @@ -42,8 +42,8 @@ static int skip_atoi(const char **s) =20 static char * number(char * str, unsigned long long num, int base, int siz= e, int precision, int type) { - char c,sign,tmp[66]; - const char *digits=3D"0123456789abcdefghijklmnopqrstuvwxyz"; + char c, sign, tmp[66]; + const char *digits =3D "0123456789abcdefghijklmnopqrstuvwxyz"; int i; =20 if (type & LARGE) @@ -83,14 +83,14 @@ static char * number(char * str, unsigned long long num= , int base, int size, int precision =3D i; size -=3D precision; if (!(type&(ZEROPAD+LEFT))) - while(size-->0) + while (size-- > 0) *str++ =3D ' '; if (sign) *str++ =3D sign; if (type & SPECIAL) { if (base=3D=3D8) *str++ =3D '0'; - else if (base=3D=3D16) { + else if (base =3D=3D 16) { *str++ =3D '0'; *str++ =3D digits[33]; } @@ -125,7 +125,7 @@ int vsprintf(char *buf, const char *fmt, va_list args) /* 'z' changed to 'Z' --davidm 1/25/99 */ =20 =20 - for (str=3Dbuf ; *fmt ; ++fmt) { + for (str =3D buf ; *fmt ; ++fmt) { if (*fmt !=3D '%') { *str++ =3D *fmt; continue; @@ -296,7 +296,7 @@ int sprintf(char * buf, const char *fmt, ...) int i; =20 va_start(args, fmt); - i=3Dvsprintf(buf,fmt,args); + i =3D vsprintf(buf, fmt, args); va_end(args); return i; } --=20 2.25.1