[PATCH 6/6] patman: Complain if a checkpatch line is not understood

Simon Glass sjg at chromium.org
Thu May 7 00:29:09 CEST 2020


Rather than suffering in silence, output a warning if something about the
checkpatch output cannot be understood.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/patman/checkpatch.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/patman/checkpatch.py b/tools/patman/checkpatch.py
index 5ae450d771..98c63af1dd 100644
--- a/tools/patman/checkpatch.py
+++ b/tools/patman/checkpatch.py
@@ -143,6 +143,8 @@ def CheckPatch(fname, verbose=False):
         elif subject_match:
             item['file'] = '<patch subject>'
             item['line'] = None
+        else:
+            print('bad line "%s", %d' % (line, len(line)))
 
     return result
 
-- 
2.26.2.645.ge9eca65c58-goog



More information about the U-Boot mailing list