DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: david.marchand@redhat.com,
	Stephen Hemminger <stephen@networkplumber.org>
Subject: [PATCH] devtools: fix awk regular expression
Date: Sun, 19 Oct 2025 09:05:11 -0700	[thread overview]
Message-ID: <20251019160511.18173-1-stephen@networkplumber.org> (raw)

The latest version of awk (in Debian testing) will give a warning
about invalid regular expression error.

	awk: line 6: regular expression compile failed (syntax error ^* or ^+)
	^+++ b/

Fix by using additional backslash escape.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 devtools/checkpatches.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh
index 9fb8fd0a07..646d5d1513 100755
--- a/devtools/checkpatches.sh
+++ b/devtools/checkpatches.sh
@@ -320,10 +320,10 @@ check_experimental_tags() { # <patch>
 		current_file = "";
 		ret = 0;
 	}
-	/^+++ b\// {
+	/^\+++ b\// {
 		current_file = $2;
 	}
-	/^+.*__rte_experimental/ {
+	/^\+.*__rte_experimental/ {
 		if (current_file ~ ".c$" ) {
 			print "Please only put __rte_experimental tags in " \
 				"headers ("current_file")";
@@ -350,10 +350,10 @@ check_internal_tags() { # <patch>
 		current_file = "";
 		ret = 0;
 	}
-	/^+++ b\// {
+	/^\+++ b\// {
 		current_file = $2;
 	}
-	/^+.*__rte_internal/ {
+	/^\+.*__rte_internal/ {
 		if (current_file ~ ".c$" ) {
 			print "Please only put __rte_internal tags in " \
 				"headers ("current_file")";
-- 
2.51.0


                 reply	other threads:[~2025-10-19 16:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251019160511.18173-1-stephen@networkplumber.org \
    --to=stephen@networkplumber.org \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).