mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-13 08:54:59 +00:00
[llvm-exegesis] Put a newline at the end of each error report.
Makes multiple error messages much easier to read. llvm-svn: 330258
This commit is contained in:
parent
6333ebffd9
commit
ffb897ed4a
@ -67,7 +67,7 @@ PerfEvent::PerfEvent(llvm::StringRef PfmEventString)
|
|||||||
// on Sandybridge but 8 on Haswell) so we report the missing counter without
|
// on Sandybridge but 8 on Haswell) so we report the missing counter without
|
||||||
// crashing.
|
// crashing.
|
||||||
llvm::errs() << pfm_strerror(Result) << " - cannot create event "
|
llvm::errs() << pfm_strerror(Result) << " - cannot create event "
|
||||||
<< EventString;
|
<< EventString << "\n";
|
||||||
}
|
}
|
||||||
if (Fstr) {
|
if (Fstr) {
|
||||||
FullQualifiedEventString = Fstr;
|
FullQualifiedEventString = Fstr;
|
||||||
@ -109,7 +109,7 @@ int64_t Counter::read() const {
|
|||||||
int64_t Count = 0;
|
int64_t Count = 0;
|
||||||
ssize_t ReadSize = ::read(FileDescriptor, &Count, sizeof(Count));
|
ssize_t ReadSize = ::read(FileDescriptor, &Count, sizeof(Count));
|
||||||
if (ReadSize != sizeof(Count))
|
if (ReadSize != sizeof(Count))
|
||||||
llvm::errs() << "Failed to read event counter";
|
llvm::errs() << "Failed to read event counter\n";
|
||||||
return Count;
|
return Count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user