From bbbe2fa2e665eeeeffb0b11f645a358f3ce36d13 Mon Sep 17 00:00:00 2001 From: Aaron Conole Date: Mon, 1 May 2017 16:14:08 -0400 Subject: [PATCH] checkpatch: filename from hunks fix Filenames that come from the hunks match include the git-ified 'b/' prefix, which makes jumping to the error file that much harder. This patch corrects that by simply skipping those bytes. Signed-off-by: Aaron Conole Signed-off-by: Ben Pfaff --- utilities/checkpatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py index ceb488c48..d2fea4beb 100755 --- a/utilities/checkpatch.py +++ b/utilities/checkpatch.py @@ -300,7 +300,7 @@ def ovs_checkpatch_parse(text): elif parse == 2: newfile = hunks.match(line) if newfile: - current_file = newfile.group(2) + current_file = newfile.group(2)[2:] print_file_name = current_file continue reset_line_number = hunk_differences.match(line)