devtools: fix path in forbidden token check
authorDavid Marchand <david.marchand@redhat.com>
Mon, 6 Jul 2020 08:00:21 +0000 (10:00 +0200)
committerThomas 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

index 8c89de3..f86cbe8 100755 (executable)
@@ -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
        }