Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37335278rwd; Tue, 11 Jul 2023 12:47:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlFeDalRcbtV3E9/ptw8SOhRr4uh5NJsl6XlU2/R209NtgDuyPKDlXq9KM2uT7iI2/K/ZH7n X-Received: by 2002:a17:902:ef95:b0:1b1:9218:6bf3 with SMTP id iz21-20020a170902ef9500b001b192186bf3mr12458677plb.37.1689104832859; Tue, 11 Jul 2023 12:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689104832; cv=none; d=google.com; s=arc-20160816; b=fT3NDKD5/ZZogChRnpPESEAEluDHxAzcjAtNHWHnzU7xnYHhwlIFOefAy6F4jOA9V5 GZgI69lO8T0ZTleCWnlCmUcskZUvT9sqbxkjeZgYdsBlCF1teOANov7LUEA7ckwSoYfA L0+2N/6dfQ/pknmHjmS/PFl+CzqN40VQAFXXKwRlW3IaInNq3Cujxa9wgmAmVf7hKh4Z xTOoHUAtpXCSZaZIlJ6hpmSbONwFcVzBvtRc/Umu5BcJnuazIzZHhBUfYSqOrtFvquDu S2Dlrsu1Ba27SNgsycZAM8m34OqovefKuU9jblPG9Q78Lhp5w8KzIiDBeNHf/daZfU7X XxcA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=XPTx+Ws3Y1ZkwkC3gw0ffR2MEH9gkKKgU530Wx0jALg=; fh=BspKJM9CBEpkExHLPxsNtTME6IE+TkNs8p3xDY7EfLc=; b=xjTTluXeBYWirxBhneXlNgE/lEp3c5mCl8lmFhIW1msDhZuL6tTICbVQ+qvPoat2Pw ZxQ0tOpZN8JcQxDsuo9RsjW31TNcOBfOBKwLt0cKzd7JBmLTVVqwXJlcYfu7Zvou0/Xy 7Cl9zR38DAnEuXdlQ4oQ++HuKtLAPOBfNN+jXSU4924lTk2ZR3lcfrpPlcVZtMMtd6xH NurzgaA46G/WV++ArxrVk9SoHsRDSvj3vn9ARaCEmFBGjQjuPEmhfGrFt4GWZtAOPRpa sxS1IdLz/3dmaRYqW3hvohnf/zG8WMco4jA5cour9pY51ILLF/VQFHRW8ox/CmIIjPKz 041g== 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 n3-20020a170903404300b001b045d65aedsi1885520pla.228.2023.07.11.12.47.00; Tue, 11 Jul 2023 12:47:12 -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 S231208AbjGKTNG (ORCPT + 99 others); Tue, 11 Jul 2023 15:13:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231368AbjGKTNC (ORCPT ); Tue, 11 Jul 2023 15:13:02 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 12702EA; Tue, 11 Jul 2023 12:12:56 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 36BJCX04006335; Tue, 11 Jul 2023 21:12:33 +0200 Date: Tue, 11 Jul 2023 21:12:33 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Zhangjin Wu Subject: Re: [PATCH 3/4] selftests/nolibc: simplify status argument Message-ID: <20230711191233.GB31402@1wt.eu> References: <20230711-nolibc-sizeof-long-gaps-v1-0-dc78c3b85fc3@weissschuh.net> <20230711-nolibc-sizeof-long-gaps-v1-3-dc78c3b85fc3@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230711-nolibc-sizeof-long-gaps-v1-3-dc78c3b85fc3@weissschuh.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_TEMPERROR 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 Hi Thomas, On Tue, Jul 11, 2023 at 11:48:41AM +0200, Thomas Wei?schuh wrote: > I'm not sure if this is an improvement over the previous patch. > If so it should be squashed into it. Indeed, I find it less readable, because when you read: result(llen, ret ? FAIL : OK); it makes it explicit what values of ret are expected with what meaning, but this one: result(llen, ret); makes it quite opaque. I'd rather keep the ternary operator and the 3 values that are likely more accessible to newcomers who will more quickly figure how to do what they need. Thus I dropped this one and applied the 3 other ones which are indeed a nice cleanup. Thanks, Willy