commit | 3fcf747f1daefcd7995a3c22f42e9f5c987e7142 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Apr 03 11:24:17 2017 -0700 |
committer | Josh Gao <jmgao@google.com> | Mon Apr 03 12:41:35 2017 -0700 |
tree | 16ec78eb984d4876b5542a8c6f7db5fd3d768dfc | |
parent | 4df5ca1e0254790d41f945352a93f5c783ea8de0 [diff] [blame] |
versioner: guard preprocessing messages with -v. Bug: http://b/36751878 Test: tools/versioner/run_tests.py Change-Id: I5142a33519b101548ccaec8a3bc498e446a648a7
diff --git a/tools/versioner/src/Preprocessor.cpp b/tools/versioner/src/Preprocessor.cpp index 86bb225..2703842 100644 --- a/tools/versioner/src/Preprocessor.cpp +++ b/tools/versioner/src/Preprocessor.cpp
@@ -409,7 +409,9 @@ file_lines[loc.start.line - 1].insert(loc.start.column - 1, prologue); } - printf("Preprocessing %s...\n", output_path.c_str()); + if (verbose) { + printf("Preprocessing %s...\n", output_path.c_str()); + } writeFileLines(output_path, file_lines); }