diff options
author | Simon Glass <sjg@chromium.org> | 2020-05-07 01:29:09 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-06-12 05:52:11 +0300 |
commit | 96daa41aab97f87f1a7b2d8bf00ee546db2ca156 (patch) | |
tree | 2fd042e4bd154808094fc06272977d8c83f1ad4a | |
parent | 37f3bb53b78d13f15634a976ebbfa36499d74290 (diff) | |
download | u-boot-96daa41aab97f87f1a7b2d8bf00ee546db2ca156.tar.xz |
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>
-rw-r--r-- | tools/patman/checkpatch.py | 2 |
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 |