Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3585082iog; Tue, 21 Jun 2022 01:36:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vr9rni0tmmZ+hSdvxY5n1mBSUZq8JGruWkrdV5N0C3m3i52TOld9208HpMCoDpWepJ1y1F X-Received: by 2002:a05:6402:195:b0:431:5499:35eb with SMTP id r21-20020a056402019500b00431549935ebmr34375595edv.346.1655800616886; Tue, 21 Jun 2022 01:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655800616; cv=none; d=google.com; s=arc-20160816; b=j9NI4kIa/InrjYF/3EBuIlIIsGTjAjUqSApT6p7PgrPRr92moBPkJFn2AZk5y6vwzm 3SOE0Ghak08Vqk3gGxRA7GsLGH2gGWP88DySb1IHItYcjFGiajNwMJ/FKdQs3MA8iyt6 8S1ufEGEfcxBSM9YonPHr7njIcM518ppEns7dERz2dwhsWbKUDkYqcB08QTPDqJ18JeJ tVoKBoAKJ2aq/ul8cxZKCR983W8ttfZxCJba9/9AfTBVUP4MiySXWXTtwOmzDb9+HlYc y0/qwu5K2B2+/LQAwt0xgS7B5ZIuqCV6ZY7qh9acYO+VQDxIs/YxcxTnoIldhabZYr5z QYQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=7oUIaVhKPeYypZwFBnVA9rWO+x3jATxAKxHPdW1rXdo=; b=MQE5/QtqHgydzA+AWx8qSFbA3VXrbFbr5Z4eFwJQNPYeC5OUpx41pkXGAIF7mJTqdc rU+ach/4xqW41O5z0EoM6hQKJsReFYrZBZbLB9ondFrdaVbjZTOrvsDEi1wHekzl1Xxr vYkXtzB0J7n8RpFYY38D89lut79CHjpCeFMG756Hx94OopmtswjlbCEyOgbalqPhPl+K jBnYfZoHtCiHZN6khvO0fGtxxZ4OV/CqhGDcReF13KoldLQxJ3kPGS6NLySaSBCrj0Go AQUv2/jXXIRa5IgHOHugbBmMwlcZUWqf4gB6l6Hj4IFyuxyB2fh7ZOOSsdY72ysJWapW A7fA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 1-20020a170906208100b00722e1ba9675si1831880ejq.949.2022.06.21.01.36.20; Tue, 21 Jun 2022 01:36:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348031AbiFUIP2 (ORCPT + 99 others); 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: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a space after ','. Add spaces around the '=', '>' and '=='. 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) static char * number(char * str, unsigned long long num, int base, int size, int precision, int type) { - char c,sign,tmp[66]; - const char *digits="0123456789abcdefghijklmnopqrstuvwxyz"; + char c, sign, tmp[66]; + const char *digits = "0123456789abcdefghijklmnopqrstuvwxyz"; int i; if (type & LARGE) @@ -83,14 +83,14 @@ static char * number(char * str, unsigned long long num, int base, int size, int precision = i; size -= precision; if (!(type&(ZEROPAD+LEFT))) - while(size-->0) + while (size-- > 0) *str++ = ' '; if (sign) *str++ = sign; if (type & SPECIAL) { if (base==8) *str++ = '0'; - else if (base==16) { + else if (base == 16) { *str++ = '0'; *str++ = digits[33]; } @@ -125,7 +125,7 @@ int vsprintf(char *buf, const char *fmt, va_list args) /* 'z' changed to 'Z' --davidm 1/25/99 */ - for (str=buf ; *fmt ; ++fmt) { + for (str = buf ; *fmt ; ++fmt) { if (*fmt != '%') { *str++ = *fmt; continue; @@ -296,7 +296,7 @@ int sprintf(char * buf, const char *fmt, ...) int i; va_start(args, fmt); - i=vsprintf(buf,fmt,args); + i = vsprintf(buf, fmt, args); va_end(args); return i; } -- 2.25.1