From mboxrd@z Thu Jan 1 00:00:00 1970 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 A1D6AEB64DD for ; Sun, 9 Jul 2023 08:52:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229873AbjGIIwR (ORCPT ); Sun, 9 Jul 2023 04:52:17 -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) 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