Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp33988987rwd; Sun, 9 Jul 2023 02:44:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlHqT+8k/aB5tXmq4Nrj1s04JaEY7W6TQbeEN0aANv6F2Sze7VFpW2OmR+KtqTvIqMYjO4kx X-Received: by 2002:a17:906:198:b0:98d:f11e:4816 with SMTP id 24-20020a170906019800b0098df11e4816mr9618646ejb.29.1688895896376; Sun, 09 Jul 2023 02:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688895896; cv=none; d=google.com; s=arc-20160816; b=ZrsrWiXPp5nRyF5E/0rWKZB7D/9P8A7EG7QhM5xTXyoPPOwdp0jGKtoW+OX8iFZo8T QCavecjzcVLdzOkRkvw1HSzM0//mzycLAe2HCFcoO2Xx4fUsvsCvTSTP4iVoRk5YRbCX HtJTScZjgUcSF0IXwomuPmZjtsXDlSMik0xopqMjXYCcJpEXoiCLiXCuudqfWFyUlHpZ yDRMPf++Qu8QqDBgb9PYpeyTufSHP1Vjevlaz2r6AGNEIuEsp9Th4mNvp8IxD111XQBs rY/ZA1hooKyQWZcY+VLEZwEYhnjEe4wctyEc4JSxboaftTamknnFqybndonGFfkyARvv y+iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=UztRPaPAWg8j772UGHGLgQMHVzXjQcnySzF+P2GY6H0=; fh=tcl19X2u8PtEELiqC9wF/fi8DNcGozPCtYGeW6FgzSg=; b=b/azmzfGm0iTXF1R/Q4CcYIUYD0XbPXwn9CdtIYD59Nf+BxkvpsSoh7NeLxwmOeTQR tRFyP3a0GLB0UthubydBqQnrCH9YVt6Yph1lyRcB686Hd9guHupqPGVITjLamHkgxKNJ BFMTQA77Kw3rk3yOvZPPxqeXAC0q+MfMBf9pX8jOztoWI052oCe8a89mW1wX0xmszeEw iqYZXSdA+RCHVGXlSJVWTmevFRJnT7sJuSqauYy6O4BQy8X9a5d/k7N/w4HbbMx3feN3 j+eDu6HM2U+HTE2KE2ojN0nKRJ7STtl7EJhku5a6GUlYWZsqDkYyW+VesEM/GKvpoae1 DNdg== 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 h5-20020a170906584500b0098e08768a43si5749440ejs.408.2023.07.09.02.44.08; Sun, 09 Jul 2023 02:44: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 S229765AbjGIIwQ (ORCPT + 99 others); Sun, 9 Jul 2023 04:52:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbjGIIwP (ORCPT ); Sun, 9 Jul 2023 04:52:15 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 69D07BB; Sun, 9 Jul 2023 01:52:11 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 3698prUm009401; Sun, 9 Jul 2023 10:51:53 +0200 Date: Sun, 9 Jul 2023 10:51:53 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, thomas@t-8ch.de Subject: Re: [PATCH v1 3/5] selftests/nolibc: report: align passed, skipped and failed Message-ID: <20230709085153.GA9321@1wt.eu> References: <9620a07294e4c099587170e84aba167bf849e841.1688633188.git.falcon@tinylab.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9620a07294e4c099587170e84aba167bf849e841.1688633188.git.falcon@tinylab.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Thu, Jul 06, 2023 at 05:10:08PM +0800, Zhangjin Wu wrote: > align the test values for different runs and different architectures. > > Since the total number of tests is not bigger than 1000 currently, let's > align them with "%03d". %03d is not great for those who want to use them in scripts because it will prepend zeroes. Better use %3d. Look for example: $ x=$(printf "%03d\n" 19) $ echo $x 019 $ echo $((x+1)) -bash: 019: value too great for base (error token is "019") Instead: $ printf "%3d\n" 19 19 $ x=$(printf "%3d\n" 19) $ echo $x 19 $ echo $((x+1)) 20 If you're fine with it I'll change your patch and commit message accordingly. Willy