[ovs-dev] [PATCH 4/6] checkpatch: Print the line in question distinctly

Aaron Conole aconole at redhat.com
Fri Oct 7 20:17:55 UTC 2016


This makes it easier to pick out of the warnings/errors.

Signed-off-by: Aaron Conole <aconole at redhat.com>
---
 utilities/checkpatch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py
index 61678a9..c8f21b0 100755
--- a/utilities/checkpatch.py
+++ b/utilities/checkpatch.py
@@ -223,7 +223,7 @@ def ovs_checkpatch_parse(text):
                 print_warning("Inappropriate bracing around statement",
                               lineno)
             if print_line:
-                print(line)
+                print("\n%s\n" % line)
     if __errors or __warnings:
         return -1
     return 0
-- 
2.7.4




More information about the dev mailing list