diff mbox

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

Message ID 1475871477-11608-5-git-send-email-aconole@redhat.com
State Changes Requested
Headers show

Commit Message

Aaron Conole Oct. 7, 2016, 8:17 p.m. UTC
This makes it easier to pick out of the warnings/errors.

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

Patch

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