From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C817B43750; Thu, 21 Dec 2023 14:31:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 90C9940395; Thu, 21 Dec 2023 14:31:30 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 31E0D402BD for ; Thu, 21 Dec 2023 14:31:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1703165488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fj+Vv2Qaqhs0WXhKwnRwl8pbMXTRYLW02W7K04JkDOo=; b=a7DkdDKSrK25gBNpAJb32jFQDfQCE5egBBAZJJAUxUrZZEJscepYv47wbJwkP2M13njc3k X0hlXh5q0EtzSFLFw1yY3ww8vKB9F5McTXz7f5VKc7VzPMG1JD/X9Ek6dj/IXpMEoAXp+7 JihcxhnWn+xJ5HYR6khHuFeQsA9iCJ0= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-61-77exZDFDPeidEFyeR05wFA-1; Thu, 21 Dec 2023 08:31:25 -0500 X-MC-Unique: 77exZDFDPeidEFyeR05wFA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1EFF588CDCC; Thu, 21 Dec 2023 13:31:25 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.224.218]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4D7B640C6EB9; Thu, 21 Dec 2023 13:31:24 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: ferruh.yigit@amd.com, Thomas Monjalon Subject: [PATCH] devtools: forbid writing to standard output streams Date: Thu, 21 Dec 2023 14:31:20 +0100 Message-ID: <20231221133120.1654941-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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 No output on stdout or stderr! Drivers and libraries must use the logging framework. Signed-off-by: David Marchand --- devtools/checkpatches.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index 10d1bf490b..c9e466f736 100755 --- a/devtools/checkpatches.sh +++ b/devtools/checkpatches.sh @@ -61,6 +61,14 @@ check_forbidden_additions() { # -f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \ "$1" || res=1 + # no output on stdout or stderr + awk -v FOLDERS="lib drivers" \ + -v EXPRESSIONS="\\\ \\\