As soon as stats printed for all the files, lines should be counted for each line separately.
Signed-off-by: Ilya Maximets <[email protected]> --- 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 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
