Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5496455rwd; Wed, 24 May 2023 02:38:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/y+HHqm2WyWNepqNGk9flGM+BV9NRabyL3UqL0zc90zNxCJuIWjZH4GdhoJAfAyWA69lL X-Received: by 2002:a05:6a20:440d:b0:102:a593:a162 with SMTP id ce13-20020a056a20440d00b00102a593a162mr19904385pzb.4.1684921098364; Wed, 24 May 2023 02:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684921098; cv=none; d=google.com; s=arc-20160816; b=z3tN5jyDCtsDBCcLc5xGO9dU7hN3qqKYQNJEEnbV7ugsYDccLU2xVi7qvM7WiEoH/s NXM8DKirnRvadIctFWADu+8LU0ErbTn7whb64itVX2fMObXYSDCt4M9fo/h0fkw+iq/F CzLUfygUP9kMAClWzdZ/YOp05RjWC+OQi6HKOLug02X98+aEbsoSDHwcg/LJDtOjhjF6 tHVa7hTDpw8phJfEUGNHWzptSMS0wuqkaMs+ablmbiuO7aC5hKuqOI65Qqb0XTy+Fv2i J6JWucrDt2CVxNiIHutw9fQtixRm2HVrkxxMCeHwydYC+hjr5GSayKhip8jgWaSmz5VI jx+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/WxGpSu326vuTP2MJBXiI2sP9SeXIB25nt2tHNfLb9Q=; b=bfPZh6fp/ZIOw3Mroi7ZqgRMh6TiicwmiEP7d+4PUFr6fOOWXbrDD2cPizvOO4lbTP KKltBuatafTFXbtjwL59jhuWW4N+gBbhlPIpjDNI0GhdDurhUA9WSK+DxU0BSPR4gt9g 6FFvfPgX9MV2kfj7Mh1YRPApJ29bCx3T8LN1eFT+pNCW5mRK/XPRUVA7qR4+my/Fbe6+ OgH6rPjFt5r/e0ZIzWq163tZxYnkZYjg9HY/3+xqjFckS3zqtb+lGibemvi5ZNmARCaB J9rGOzzbbQYDetLE/K5ARovlt6h7LeXgugqc+Os7dTMwAxt11ce67Qi8NBwgLrC6wEMc 8VFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uzem5TX6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020a63b44d000000b005250385bfdbsi3981989pgu.549.2023.05.24.02.38.06; Wed, 24 May 2023 02:38:18 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uzem5TX6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240571AbjEXJML (ORCPT + 99 others); Wed, 24 May 2023 05:12:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240564AbjEXJMI (ORCPT ); Wed, 24 May 2023 05:12:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EED212B; Wed, 24 May 2023 02:12:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BB81662E1B; Wed, 24 May 2023 09:12:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07354C433D2; Wed, 24 May 2023 09:12:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684919526; bh=5HNEgVJpG7dLHIJSzg/slXqy5OSHeC5cBleX5jJ/evw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uzem5TX6Ap7Uw+aheUpMNX1RBv+rP9v5Ci0CAUCQqkK/JrHNxDuic9U565y6vTfUX Y+nMH1Alu1fwrFxkUCXjeousR80Rf+xeIub/o9HNxuNRYaC3bWhD7YVU1fiQYhKUyk qoRNabUpsprNLObQhqErirx3GVbWCS/xYScPKe32KuPkeubyleST94BrL4+8H8iWeG 7PxMsiKyRr9fbLKtEsmUuRRzU42EAxYCItE9mbjFJa3qlM4HZ+asRO5zbjmnKPGEJl xQpwME8sbT0Krk+XgPiMfDXu5AJpPLn3I2fgStm/PGkm4zwEbYBmttMwpFTqJuYsNr ptIyf4BzKsBiA== Date: Wed, 24 May 2023 11:12:01 +0200 From: Christian Brauner To: Ziqi Zhao Cc: skhan@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [Linux-kernel-mentorship] [PATCH] selftest: pidfd: Omit long and repeating outputs Message-ID: <20230524-tausend-erlitt-b3163dd1dd05@brauner> References: <20230523232207.363136-1-astrajoan.ref@yahoo.com> <20230523232207.363136-1-astrajoan@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230523232207.363136-1-astrajoan@yahoo.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 Tue, May 23, 2023 at 11:22:07PM +0000, Ziqi Zhao wrote: > An output message: > > > # # waitpid WEXITSTATUS=0 > > will be printed for 30,000+ times in the `pidfd_test` selftest, which > does not seem ideal. This patch removes the print logic in the > `wait_for_pid` function, so each call to this function does not output > a line by default. Any existing call sites where the extra line might > be beneficial have been modified to include extra print statements > outside of the function calls. > > Signed-off-by: Ziqi Zhao > --- Fine by me, Reviewed-by: Christian Brauner