From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnon Warshavsky Subject: Re: [PATCH v12] devtools: alert on new instances of rte_panic and rte_exit Date: Thu, 26 Jul 2018 23:57:39 +0300 Message-ID: References: <1531741077-5513-1-git-send-email-arnon@qwilt.com> <1531745044-19185-1-git-send-email-arnon@qwilt.com> <5378502.1ef9rKBE6e@xps> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: dev@dpdk.org, "Burakov, Anatoly" , "Lu, Wenzhuo" , "Doherty, Declan" , jerin.jacob@caviumnetworks.com, Bruce Richardson , "Yigit, Ferruh" To: Thomas Monjalon Return-path: Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by dpdk.org (Postfix) with ESMTP id 31CA8288C for ; Thu, 26 Jul 2018 22:57:40 +0200 (CEST) Received: by mail-lf1-f46.google.com with SMTP id j143-v6so2118326lfj.12 for ; Thu, 26 Jul 2018 13:57:40 -0700 (PDT) In-Reply-To: <5378502.1ef9rKBE6e@xps> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > +check_forbidden_additions() { # > > This function looks to work with stdin, not a file. > Better to remove the comment about a . > It can actually work with both but you are right. The comment is not beneficial there Will fix with the rest of the list below ... > > > + if [ $? -ne 0 ] ; then > > + ret=1 > > + fi > > + printf '%s\n' "$report" > > You are printing the report, no matter of the result? Why? > Is it because a warning does not return as an error? > There is maybe an improvement required here. > Yes this is indeed the reason. Sticking to a simple success/fail in the return value with the price of printing an empty string in the case of no-warning seemed better than handling multiple (>2) return codes . Do you have a preferred way here?