]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 5ae450d771ba4c832786d51e28b307204b48f359..98c63af1dd61d4df5d47897ac9f3e0d97f0d0b74 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