summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/clang-format/clang-format.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/clang-format/clang-format.py b/tools/clang-format/clang-format.py
index 0c0da6e4dc..46af0682aa 100644
--- a/tools/clang-format/clang-format.py
+++ b/tools/clang-format/clang-format.py
@@ -59,12 +59,7 @@ def main():
# If successful, replace buffer contents.
if stderr:
- message = stderr.splitlines()[0]
- parts = message.split(' ', 2)
- if len(parts) > 2:
- message = parts[2]
- print 'Formatting failed: %s (total %d warnings, %d errors)' % (
- message, stderr.count('warning:'), stderr.count('error:'))
+ print stderr
if not stdout:
print ('No output from clang-format (crashed?).\n' +