* [PATCH] devtools: fix awk regular expression
@ 2025-10-19 16:05 Stephen Hemminger
0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2025-10-19 16:05 UTC (permalink / raw)
To: dev; +Cc: david.marchand, Stephen Hemminger
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-10-19 16:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-19 16:05 [PATCH] devtools: fix awk regular expression Stephen Hemminger
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).