git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vhost: add statistics for in-flight packets
[dpdk.git]
/
devtools
/
check-forbidden-tokens.awk
diff --git
a/devtools/check-forbidden-tokens.awk
b/devtools/check-forbidden-tokens.awk
index
8c89de3
..
0268441
100755
(executable)
--- a/
devtools/check-forbidden-tokens.awk
+++ b/
devtools/check-forbidden-tokens.awk
@@
-20,6
+20,9
@@
BEGIN {
# state machine assumes the comments structure is enforced by
# checkpatches.pl
(in_file) {
# state machine assumes the comments structure is enforced by
# checkpatches.pl
(in_file) {
+ if ($0 ~ "^@@") {
+ in_comment = 0
+ }
# comment start
if (index($0,comment_start) > 0) {
in_comment = 1
# comment start
if (index($0,comment_start) > 0) {
in_comment = 1
@@
-54,7
+57,7
@@
BEGIN {
}
for (i in deny_folders) {
re = "^\\+\\+\\+ b/" deny_folders[i];
}
for (i in deny_folders) {
re = "^\\+\\+\\+ b/" deny_folders[i];
- if ($0 ~
deny_folders[i]
) {
+ if ($0 ~
re
) {
in_file = 1
last_file = $0
}
in_file = 1
last_file = $0
}
@@
-62,7
+65,7
@@
BEGIN {
}
END {
if (count > 0) {
}
END {
if (count > 0) {
- print "Warning in " substr(last_file,
6
) ":"
+ print "Warning in " substr(last_file,
7
) ":"
print MESSAGE
exit RET_ON_FAIL
}
print MESSAGE
exit RET_ON_FAIL
}