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 C092AE95A65 for ; Sat, 7 Oct 2023 19:49:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344046AbjJGTlX (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > >