Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1121772rdb; Sat, 7 Oct 2023 13:00:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGK+GfL9+GmenuqBoPzs/7/7BAvD8upl58KJgyeRlxC2wP+ulcEFX67wOCxJqV836AhhWXM X-Received: by 2002:a2e:9dd2:0:b0:2bd:133c:58ff with SMTP id x18-20020a2e9dd2000000b002bd133c58ffmr10079209ljj.48.1696708813072; Sat, 07 Oct 2023 13:00:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696708813; cv=none; d=google.com; s=arc-20160816; b=LqTpFi8xH/QudZ+OlIQhNlppibYuZ/m90nKP1DNI/gqgRyWImqfG4bv1kTDrdrfHEC 0zlHp0dXBAmlxKK9C4KVgj1M2Wklx2W28XjVBoau3Tt0cneE6+OFsQ6hh7Uzdd9BKsNZ CaSdU5oaGAacSTOy1NOEmOLo65dh9T3JhqvHr7nJRVIoqgpITLRlIKt1Wkhif7hwPT0F 2ehXxBwHZixmdIf7XoGe0sK3Te+OsEDm7BEdZ3magFtBid76NYdDAtHOzVfRwQ/iGybv fA8RULYRoMERs2nWfxdcN6xLt8bkEBa+DpF0arKnYQj7fvGTveLLAcON84OUSFVx9iww Vd8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=hsRMnVxEdXNQbDv8iJbkta6BVDoT/UbI/OfTI7OLzNA=; fh=3INv4ojhZPr/8lxodP3twRHteGxuDZq0iy+Doksd3Lw=; b=NjBBy0OHk1vv7U4CPfid/oBsZzOf2f/6+eyQh9tytKscG/U537vfEe4kjUaAuHRDeP 38l13IjxyCiC8zLwm9QUUYqIVBToxlJaSFPgUk+h936UblpFrWYVaTMOextq+7Wr8rWB qntoRGfzb6Yrx1S0Y4kuqIp1UdYACgHbC6MODwfGbK5DaYAhKqWmslc0x+Zw0pZUTxAa t5Lo/GETX9BxlkTBYRZJcgeUZ02uDMoJn9HYB0kwZB7g5+cUyOuX5tzuPI3o1ISe4SFU 2I5Shu79v+pMAc19neRUT+HWdnMRF4MGw+S5Yo0n0zCjmpVqDzhqPmEGDE/hfXVqVIHE rnug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=W9Aiik7b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id z5-20020a2e9b85000000b002bfaf2b7ce2si1194151lji.604.2023.10.07.13.00.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 13:00:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=W9Aiik7b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C65698080E0F; Sat, 7 Oct 2023 13:00:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343828AbjJGTlX (ORCPT + 99 others); Sat, 7 Oct 2023 15:41:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjJGTlW (ORCPT ); Sat, 7 Oct 2023 15:41:22 -0400 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13C7BBA for ; Sat, 7 Oct 2023 12:41:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=hsRMnVxEdXNQbDv8iJbkta6BVDoT/UbI/OfTI7OLzNA=; b=W9Aiik7bGTqpsEh2M3jhWuB0L8H+QhWpejGYv782et3LDt2en/zlR2PK bEaYsetnvgX+h9qouglrS1BjvbTAkxnIWUnDqJOq4FbRmFbas7FVpIjzc 5Okky/cTMhpqRYn4NW5VuRHTTMyU0SvAxUbcf/sc+i+WAA3HdH/t0paA0 4=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.03,206,1694728800"; d="scan'208";a="130024966" Received: from 231.85.89.92.rev.sfr.net (HELO hadrien) ([92.89.85.231]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2023 21:41:15 +0200 Date: Sat, 7 Oct 2023 21:41:15 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Anton Eliasson cc: Nicolas Palix , cocci@inria.fr, linux-kernel@vger.kernel.org, kernel@axis.com Subject: Re: [cocci] [PATCH 2/2] scripts: coccicheck: Separate spatch stdout and stderr In-Reply-To: <20231003-coccicheck-v1-2-07d2d900a52a@axis.com> Message-ID: References: <20231003-coccicheck-v1-0-07d2d900a52a@axis.com> <20231003-coccicheck-v1-2-07d2d900a52a@axis.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sat, 07 Oct 2023 13:00:08 -0700 (PDT) X-Spam-Level: ** On Tue, 3 Oct 2023, Anton Eliasson wrote: > This helps automating coccicheck runs by discarding stderr and only > looking at the output of stdout. In report mode the only remaining > output on stdout is the initial "Please check for false positives" > message followed by each spatch warning found. What is getting dropped is the spatch command lines indicating the semantic patch. Is this desirable? julia > > Signed-off-by: Anton Eliasson > --- > scripts/coccicheck | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/scripts/coccicheck b/scripts/coccicheck > index 95a312730e98..7e7c44125f47 100755 > --- a/scripts/coccicheck > +++ b/scripts/coccicheck > @@ -146,8 +146,8 @@ run_cmd_parmap() { > echo $@>>$DEBUG_FILE > $@ 2>>$DEBUG_FILE > else > - echo $@ > - $@ 2>&1 > + echo $@ >&2 > + $@ > fi > > err=$? > > -- > 2.30.2 > >