From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752574AbdKHNCt (ORCPT ); Wed, 8 Nov 2017 08:02:49 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:22200 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752329AbdKHNCr (ORCPT ); Wed, 8 Nov 2017 08:02:47 -0500 X-IronPort-AV: E=Sophos;i="5.44,364,1505772000"; d="scan'208";a="299900365" Date: Wed, 8 Nov 2017 21:02:12 +0800 (CST) From: Julia Lawall X-X-Sender: jll@hadrien To: Masahiro Yamada cc: Julia Lawall , "Luis R . Rodriguez" , kernel-janitors@vger.kernel.org, Gilles Muller , Nicolas Palix , Michal Marek , cocci@systeme.lip6.fr, Linux Kernel Mailing List Subject: Re: [PATCH] Coccinelle: make DEBUG_FILE option more useful In-Reply-To: Message-ID: References: <1508061353-24744-1-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Nov 2017, Masahiro Yamada wrote: > 2017-10-26 13:02 GMT+09:00 Julia Lawall : > > > > > > On Thu, 26 Oct 2017, Masahiro Yamada wrote: > > > >> Hi Julia, > >> > >> > >> 2017-10-15 18:55 GMT+09:00 Julia Lawall : > >> > Make coccicheck checked for the existence of DEBUG_FILE on each semantic > >> > patch, and bailed if it already existed. This meant that DEBUG_FILE was > >> > useless for checking more than one semantic patch at a time. Now the check > >> > is moved to the start of make coccicheck, and the 2> is changed to a 2>> to > >> > append to the file on each semantic patch. Furthermore, the spatch command > >> > that is run for each semantic patch is also added to the DEBUG_FILE, to > >> > make clear what each stdout trace corresponds to. > >> > > >> > Signed-off-by: Julia Lawall > >> > > >> > >> I think this is a good improvement, > >> and looks almost good to me. > >> > >> Just one nit. > >> > >> > >> > > >> > } > >> > > >> > +if [ "$DEBUG_FILE" != "/dev/null" -a "$DEBUG_FILE" != "" ]; then > >> > + if [ -f $DEBUG_FILE ]; then > >> > + echo "Debug file $DEBUG_FILE exists, bailing" > >> > + exit > >> > + fi > >> > + touch $DEBUG_FILE > >> > >> I think this "touch" is redundant. > >> > >> If the DEBUG_FILE does not exist, 2>> will automatically create it. > > > > Thanks very much for the feedback. I will resubmit. > > > > julia > > > > > > Remove the redundant "touch" > and applied to linux-kbuild/misc. Thanks! julia > > > > -- > Best Regards > Masahiro Yamada >