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>
diff --git a/tools/patman/checkpatch.py b/tools/patman/checkpatch.py
index 5ae450d..98c63af 100644
--- a/tools/patman/checkpatch.py
+++ b/tools/patman/checkpatch.py
@@ -143,6 +143,8 @@
elif subject_match:
item['file'] = '<patch subject>'
item['line'] = None
+ else:
+ print('bad line "%s", %d' % (line, len(line)))
return result