From patchwork Fri Feb 17 21:25:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 124137 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2F5C941CC4; Fri, 17 Feb 2023 22:25:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C061A40F17; Fri, 17 Feb 2023 22:25:47 +0100 (CET) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mails.dpdk.org (Postfix) with ESMTP id B245740EE3 for ; Fri, 17 Feb 2023 22:25:45 +0100 (CET) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id E98AE5C00DE; Fri, 17 Feb 2023 16:25:43 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 17 Feb 2023 16:25:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1676669143; x=1676755543; bh=Hs7fgJ+I4y2TQlo3zZnedoz00 T2vF+Nb8yAUE/YiZgw=; b=M3rMMh4+JlYBJ4HwAV9raUO3u7B2NdJPSjpG85Hw9 KicZflaOpRi2KBJO/2PUkgu7OcNWzphWKGzexmcGkfCOPbqdgTVPC0yjGO2eeZ7R e1gAjEMiC+7NbNpSg4yvJWdYFNNjDxump6sZESTsgBb+MuJpsFhqKtw1XJSKfpZY hzokZldz3yEtutKtCRyDTjrK+KyQ0P/di4hoVECVc3DZZlss+ogKOJWFJPB9RhSe y3re3Dy3XirKMVLEM/m0z2kWBrCh/pLz8BQ9nHjutbI7tKfrbCCgdbbkqUkO1jhm eV+Ts4J6xY70040qki2Wl/pfdobgJx/Kaj6mkNThqon9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1676669143; x=1676755543; bh=Hs7fgJ+I4y2TQlo3zZnedoz00T2vF+Nb8yA UE/YiZgw=; b=DZKXMD5xY9XEbY7DVZDQf2OuDBpa2Ic7YLT654kYNHdr6uOmsCH UBEE+WeVbX0hWzdzqCYodSXOBVGMiqgyqpY2OxA8xOrLuFr1MKWckkxJw3ksLmMU J04J1d+kBduqw2yLtq0dCz2mQDCXwSjiRjgIValH5j4jhu+CVyg7g7dfDNxJDtJ1 0jO0Kmt2u48kasEa6q5m6VnzIC83gXGhT4CJ7cm68sPUcCFvlkbRoqSj5CrchRB5 p8a5J1WbWhu1P2LxJBdxJ/sV6v5qy6IKGelNWChBh9Cb7X3maOZX+g5XRMv8BMif ZBB+Ouxm3lm7vWh/WN8QlurSn3OSH45R0DA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudeiledgudegiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepveevfeevieeihfetudekgeekleeigeffueekveduteeuffeiudev teeiudekfeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 17 Feb 2023 16:25:43 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: David Marchand Subject: [PATCH] devtools: improve output of SPDX check Date: Fri, 17 Feb 2023 22:25:31 +0100 Message-Id: <20230217212532.2877388-1-thomas@monjalon.net> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org When printing the check result in the middle of other checks, it helps to get a bit of context about which check it is. In quiet mode, no need to print result if all is OK. Signed-off-by: Thomas Monjalon --- devtools/check-spdx-tag.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devtools/check-spdx-tag.sh b/devtools/check-spdx-tag.sh index 7624778a8c..191d4a9906 100755 --- a/devtools/check-spdx-tag.sh +++ b/devtools/check-spdx-tag.sh @@ -62,9 +62,9 @@ trap 'rm -f -- "$tmpfile"' INT TERM HUP EXIT check_spdx $quiet || echo - check_boilerplate - $quiet || echo -echo "total: $errors errors, $warnings warnings" +$quiet && [ $errors -eq 0 ] && [ $warnings -eq 0 ] || +echo "SPDX tag check: $errors errors, $warnings warnings" + exit $errors