From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 1/2] scripts: add checkpatch wrapper Date: Thu, 29 Oct 2015 14:03:59 +0100 Message-ID: <3011581.XzQahXhfO1@xps13> References: <1445615606-3885-1-git-send-email-thomas.monjalon@6wind.com> <1445615606-3885-2-git-send-email-thomas.monjalon@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: David Marchand Return-path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 5FF768E65 for ; Thu, 29 Oct 2015 14:05:10 +0100 (CET) Received: by wmff134 with SMTP id f134so24013003wmf.1 for ; Thu, 29 Oct 2015 06:05:10 -0700 (PDT) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-10-29 13:33, David Marchand: > On Fri, Oct 23, 2015 at 5:53 PM, Thomas Monjalon > wrote: > > > +for p in "$@" ; do > > + printf -- "\n### $p\n\n" > > + report=$($DPDK_CHECKPATCH_PATH $options "$p" 2>/dev/null) > > + [ $? -ne 0 ] || continue > > + printf '%s\n' "$report" | head -n -6 > > + status=$(($status + 1)) > > +done > > +exit $status > > > > I prefer when checking scripts only complain when something is wrong :-) > So I would only display the file name if checkpatch complains. Yes I'll move the first printf after the "continue".