[ovs-dev] [PATCH] checkpatch: Reset lines counter.

Ilya Maximets i.maximets at samsung.com
Thu Oct 5 15:27:31 UTC 2017


As soon as stats printed for all the files, lines should be
counted for each line separately.

Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
---
 utilities/checkpatch.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py
index 185ddaf..33feb6b 100755
--- a/utilities/checkpatch.py
+++ b/utilities/checkpatch.py
@@ -64,10 +64,11 @@ def print_warning(message):
 
 
 def reset_counters():
-    global __errors, __warnings
+    global __errors, __warnings, total_line
 
     __errors = 0
     __warnings = 0
+    total_line = 0
 
 
 # These are keywords whose names are normally followed by a space and
-- 
2.7.4



More information about the dev mailing list