summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-04-18 13:58:41 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-04-18 13:58:41 +0000
commitdcfa908b51c12fdcebd22005bbfcaabe8d6d232a (patch)
tree2e1ae63253f6188ec2d1a1a0b1dc37f58bcd374e
parent31f482c26bc4452f4c41d90c73bb709d00cd0264 (diff)
downloadbcm5719-llvm-dcfa908b51c12fdcebd22005bbfcaabe8d6d232a.tar.gz
bcm5719-llvm-dcfa908b51c12fdcebd22005bbfcaabe8d6d232a.zip
[llvm-exegesis] Put a newline at the end of each error report.
Makes multiple error messages much easier to read. llvm-svn: 330258
-rw-r--r--llvm/tools/llvm-exegesis/lib/PerfHelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/PerfHelper.cpp b/llvm/tools/llvm-exegesis/lib/PerfHelper.cpp
index 8b77047bd0a..d1dfeac9ad3 100644
--- a/llvm/tools/llvm-exegesis/lib/PerfHelper.cpp
+++ b/llvm/tools/llvm-exegesis/lib/PerfHelper.cpp
@@ -67,7 +67,7 @@ PerfEvent::PerfEvent(llvm::StringRef PfmEventString)
// on Sandybridge but 8 on Haswell) so we report the missing counter without
// crashing.
llvm::errs() << pfm_strerror(Result) << " - cannot create event "
- << EventString;
+ << EventString << "\n";
}
if (Fstr) {
FullQualifiedEventString = Fstr;
@@ -109,7 +109,7 @@ int64_t Counter::read() const {
int64_t Count = 0;
ssize_t ReadSize = ::read(FileDescriptor, &Count, sizeof(Count));
if (ReadSize != sizeof(Count))
- llvm::errs() << "Failed to read event counter";
+ llvm::errs() << "Failed to read event counter\n";
return Count;
}
OpenPOWER on IntegriCloud