summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-02-10 11:49:33 +0000
committerPavel Labath <labath@google.com>2017-02-10 11:49:33 +0000
commitd02b1c83df9eb79dcf9d8be927a3088b03a512d0 (patch)
treec163c7d31e21edcc63ef2c3bba3b90039e37a00d /lldb/source/Plugins/Process
parentae91babf2d2b205b44c12c0a66e5d35a0ffbebb4 (diff)
downloadbcm5719-llvm-d02b1c83df9eb79dcf9d8be927a3088b03a512d0.tar.gz
bcm5719-llvm-d02b1c83df9eb79dcf9d8be927a3088b03a512d0.zip
Add a format_provider for the Timeout class
and use it in the appropriate log statements. Formatting of chrono types in log messages was very clunky. This should make it much nicer to use and give better output. For details of the formatting options see the chrono formatter in llvm. llvm-svn: 294738
Diffstat (limited to 'lldb/source/Plugins/Process')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index e20994a9a0c..1e1bc066cbf 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -334,10 +334,9 @@ GDBRemoteCommunication::WaitForPacketNoLock(StringExtractorGDBRemote &packet,
size_t bytes_read = Read(buffer, sizeof(buffer), timeout, status, &error);
LLDB_LOGV(log,
- "Read(buffer, sizeof(buffer), timeout = {0} us, "
+ "Read(buffer, sizeof(buffer), timeout = {0}, "
"status = {1}, error = {2}) => bytes_read = {3}",
- long(timeout ? timeout->count() : -1),
- Communication::ConnectionStatusAsCString(status), error,
+ timeout, Communication::ConnectionStatusAsCString(status), error,
bytes_read);
if (bytes_read > 0) {
OpenPOWER on IntegriCloud