patman: Complain if a checkpatch line is not understood
authorSimon Glass <sjg@chromium.org>
Wed, 6 May 2020 22:29:09 +0000 (16:29 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 12 Jun 2020 02:52:11 +0000 (20:52 -0600)
Rather than suffering in silence, output a warning if something about the
checkpatch output cannot be understood.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/checkpatch.py

index 5ae450d..98c63af 100644 (file)
@@ -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