summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-05-06 16:29:09 -0600
committerSimon Glass <sjg@chromium.org>2020-06-11 20:52:11 -0600
commit96daa41aab97f87f1a7b2d8bf00ee546db2ca156 (patch)
tree2fd042e4bd154808094fc06272977d8c83f1ad4a /tools
parent37f3bb53b78d13f15634a976ebbfa36499d74290 (diff)
downloadu-boot-96daa41aab97f87f1a7b2d8bf00ee546db2ca156.tar.gz
patman: Complain if a checkpatch line is not understood
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/patman/checkpatch.py2
1 files changed, 2 insertions, 0 deletions
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