git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb4261e
)
devtools: fix path in forbidden token check
author
David Marchand
<david.marchand@redhat.com>
Mon, 6 Jul 2020 08:00:21 +0000
(10:00 +0200)
committer
Thomas Monjalon
<thomas@monjalon.net>
Mon, 6 Jul 2020 08:55:19 +0000
(10:55 +0200)
Fix displayed filename by adjusting the extraction from the patch.
Before:
Warning in /lib/librte_eal/linux/eal.c:
After:
Warning in lib/librte_eal/linux/eal.c:
Fixes:
7413e7f2aeb3
("devtools: alert on new calls to exit from libs")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
devtools/check-forbidden-tokens.awk
patch
|
blob
|
history
diff --git
a/devtools/check-forbidden-tokens.awk
b/devtools/check-forbidden-tokens.awk
index
8c89de3
..
f86cbe8
100755
(executable)
--- a/
devtools/check-forbidden-tokens.awk
+++ b/
devtools/check-forbidden-tokens.awk
@@
-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
}