From: David Marchand Date: Mon, 6 Jul 2020 08:00:21 +0000 (+0200) Subject: devtools: fix path in forbidden token check X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8d4a222e12f8ce99714fad5011d76bd6a38c36e3;p=dpdk.git devtools: fix path in forbidden token check 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 --- diff --git a/devtools/check-forbidden-tokens.awk b/devtools/check-forbidden-tokens.awk index 8c89de3d4e..f86cbe8dc1 100755 --- 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 }