diff options
author | Kuba Brecka <kuba.brecka@gmail.com> | 2016-05-22 14:56:33 +0000 |
---|---|---|
committer | Kuba Brecka <kuba.brecka@gmail.com> | 2016-05-22 14:56:33 +0000 |
commit | 15e364ce97838f0eac5e85de8730fc319f8c06de (patch) | |
tree | 070cdf79c2ff9dae2af80608e9b6c820fe20b159 /lldb/source/Plugins/InstrumentationRuntime | |
parent | e04d725cf97652dc47039771c79a65f6e6df9d03 (diff) |
Reword ThreadSanitizer messages to use a lowercase 't' in thread names when in the middle of a sentence.
Diffstat (limited to 'lldb/source/Plugins/InstrumentationRuntime')
-rw-r--r-- | lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp b/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp index 3c15db54662..f30488ff1e0 100644 --- a/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp +++ b/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp @@ -636,10 +636,10 @@ ThreadSanitizerRuntime::GetLocationDescription(StructuredData::ObjectSP report, result = Sprintf("Location is a %ld-byte heap object at 0x%llx", size, addr); } else if (type == "stack") { int tid = loc->GetAsDictionary()->GetValueForKey("thread_id")->GetAsInteger()->GetValue(); - result = Sprintf("Location is stack of Thread %d", tid); + result = Sprintf("Location is stack of thread %d", tid); } else if (type == "tls") { int tid = loc->GetAsDictionary()->GetValueForKey("thread_id")->GetAsInteger()->GetValue(); - result = Sprintf("Location is TLS of Thread %d", tid); + result = Sprintf("Location is TLS of thread %d", tid); } else if (type == "fd") { int fd = loc->GetAsDictionary()->GetValueForKey("file_descriptor")->GetAsInteger()->GetValue(); result = Sprintf("Location is file descriptor %d", fd); @@ -766,7 +766,7 @@ GenerateThreadName(std::string path, StructuredData::Object *o) { bool is_atomic = o->GetObjectForDotSeparatedPath("is_atomic")->GetBooleanValue(); addr_t addr = o->GetObjectForDotSeparatedPath("address")->GetIntegerValue(); - result = Sprintf("%s%s of size %d at 0x%llx by Thread %d", is_atomic ? "atomic " : "", is_write ? "write" : "read", size, addr, thread_id); + result = Sprintf("%s%s of size %d at 0x%llx by thread %d", is_atomic ? "atomic " : "", is_write ? "write" : "read", size, addr, thread_id); } if (path == "threads") { @@ -779,9 +779,9 @@ GenerateThreadName(std::string path, StructuredData::Object *o) { int thread_id = o->GetObjectForDotSeparatedPath("thread_id")->GetIntegerValue(); int fd = o->GetObjectForDotSeparatedPath("file_descriptor")->GetIntegerValue(); if (type == "heap") { - result = Sprintf("Heap block allocated by Thread %d", thread_id); + result = Sprintf("Heap block allocated by thread %d", thread_id); } else if (type == "fd") { - result = Sprintf("File descriptor %d created by Thread %t", fd, thread_id); + result = Sprintf("File descriptor %d created by thread %t", fd, thread_id); } } |