X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=devtools%2Fcheck-forbidden-tokens.awk;h=61ba707c9bab085f5c35ee4d9e177101ddd56d72;hb=00dac9a99c783e0d442e73842ebb006f2f39c59d;hp=8c89de3d4eab844f1a9b3a3b3448b4581d4567a4;hpb=b467d38284b1983c172325f2bfacf255b2a90daa;p=dpdk.git diff --git a/devtools/check-forbidden-tokens.awk b/devtools/check-forbidden-tokens.awk index 8c89de3d4e..61ba707c9b 100755 --- a/devtools/check-forbidden-tokens.awk +++ b/devtools/check-forbidden-tokens.awk @@ -54,7 +54,7 @@ BEGIN { } for (i in deny_folders) { re = "^\\+\\+\\+ b/" deny_folders[i]; - if ($0 ~ deny_folders[i]) { + if ($0 ~ re) { in_file = 1 last_file = $0 } @@ -62,7 +62,7 @@ BEGIN { } END { if (count > 0) { - print "Warning in " substr(last_file,6) ":" + print "Warning in " substr(last_file,7) ":" print MESSAGE exit RET_ON_FAIL }