From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id 1A61A2BF1 for ; Mon, 29 Aug 2016 11:12:38 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id o80so81100043wme.1 for ; Mon, 29 Aug 2016 02:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=1d+W1fKsQw4jNtBY0JQyMfzkvjJre6kHhsq1tiKLuD4=; b=ompDhIp3pv6YvrlP6Bgunoh75PMRXLAlsgzKicmU9k23Bb4a+mIj/lG4zHmE2IIJCH lceQxoqXm+6DAhfuWDrJpCLf2HutV9JdPG6RXdd0PwrExprE6BGC0nujZT1iaSKpMgM3 DNEExGozhKkaoYlbzdpe8YpHXqQX9K1ZzbUhtyRniYPxyobVuIpBTt14LBNSkK6YahUn qBGlHgzzOlvB4tlrkHYZOBcw9b7fwnKdyQq377UsX1TyKpFQWM+WGDSNYIoQ0kwE2Yet /DnqG9kDvILMIjvIjZ8QzsUoOykkUCDlJ4DJHKPliu1oX+Efz93B+wTkXR/XE3q4iNfO YIwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=1d+W1fKsQw4jNtBY0JQyMfzkvjJre6kHhsq1tiKLuD4=; b=mMTYMy9zeKkke70MHTFdbXTMcUJbigR3fYEuhOmDnvVlqnoVN9jPB71aI03o7SW55N QNAVcwRR4/2dk0jTpBGvmO5vWqkKKNlnaHK4A3lxHtRO4Q8HmA7D8RxP34tz/rSg4z/o vLLH8THiTHYphmUnyiEpbWPkoeSvmXAv7unExnKNUhydCAj6FpsNbeIUutLQ69VffNm2 U0WN/EKml/cPuPdISmiMlJnMA5W2IDqRWvPfSjFsq9Ln49Tfjgat/Jt0arvnG6gGMe+q nwVyejnMhH9XjHyYgfymwROmcew4eJh+ZstApgwyW/8Gmp9+/DH0IshllY9PUrkXC8VN OZPQ== X-Gm-Message-State: AE9vXwNGu5n4E7ioBiQzRdthb63cBxaLFcwNVwMtswwz9Nla2H8/NVbEQO15g1yTJLD1yuNs X-Received: by 10.28.51.210 with SMTP id z201mr9786514wmz.98.1472461957575; Mon, 29 Aug 2016 02:12:37 -0700 (PDT) Received: from XPS13.localdomain (229.202.154.77.rev.sfr.net. [77.154.202.229]) by smtp.gmail.com with ESMTPSA id z17sm12473237wmz.23.2016.08.29.02.12.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Aug 2016 02:12:36 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Mon, 29 Aug 2016 11:12:20 +0200 Message-Id: <1472461940-13354-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 Subject: [dpdk-dev] [PATCH] scripts: remove useless checkpatch notes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 09:12:38 -0000 Depending of the checkpatch version in use, more or less notes are printed below the report. Only 6 lines were stripped, resulting to such note being printed: NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. The stripping is now more reliable because based on a very stable pattern. Signed-off-by: Thomas Monjalon --- scripts/checkpatches.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/checkpatches.sh b/scripts/checkpatches.sh index b596b4e..4addde4 100755 --- a/scripts/checkpatches.sh +++ b/scripts/checkpatches.sh @@ -90,7 +90,7 @@ check () { # fi [ $? -ne 0 ] || continue $verbose || printf '\n### %s\n\n' "$3" - printf '%s\n' "$report" | head -n -6 + printf '%s\n' "$report" | sed -n '1,/^total:.*lines checked$/p' status=$(($status + 1)) } @@ -111,7 +111,7 @@ else done fi pass=$(($total - $status)) -$quiet || printf '%d/%d valid patch' $pass $total +$quiet || printf '\n%d/%d valid patch' $pass $total $quiet || [ $pass -le 1 ] || printf 'es' $quiet || printf '\n' exit $status -- 2.7.0