forked from OSchip/llvm-project
Fixed format strings as they still must specicy a '%' prior to using PRI*64 macros.
llvm-svn: 193260
This commit is contained in:
parent
c05fa0beab
commit
4598907ff8
|
@ -177,7 +177,7 @@ GDBRemoteCommunication::SendAck ()
|
|||
char ch = '+';
|
||||
const size_t bytes_written = Write (&ch, 1, status, NULL);
|
||||
if (log)
|
||||
log->Printf ("<" PRIx64 "> send packet: %c", (uint64_t)bytes_written, ch);
|
||||
log->Printf ("<%4" PRIu64 "> send packet: %c", (uint64_t)bytes_written, ch);
|
||||
m_history.AddPacket (ch, History::ePacketTypeSend, bytes_written);
|
||||
return bytes_written;
|
||||
}
|
||||
|
@ -190,7 +190,7 @@ GDBRemoteCommunication::SendNack ()
|
|||
char ch = '-';
|
||||
const size_t bytes_written = Write (&ch, 1, status, NULL);
|
||||
if (log)
|
||||
log->Printf("<" PRIx64 "> send packet: %c", (uint64_t)bytes_written, ch);
|
||||
log->Printf("<%4" PRIu64 "> send packet: %c", (uint64_t)bytes_written, ch);
|
||||
m_history.AddPacket (ch, History::ePacketTypeSend, bytes_written);
|
||||
return bytes_written;
|
||||
}
|
||||
|
@ -226,7 +226,7 @@ GDBRemoteCommunication::SendPacketNoLock (const char *payload, size_t payload_le
|
|||
if (!m_history.DidDumpToLog ())
|
||||
m_history.Dump (log);
|
||||
|
||||
log->Printf("<" PRIx64 "> send packet: %.*s", (uint64_t)bytes_written, (int)packet.GetSize(), packet.GetData());
|
||||
log->Printf("<%4" PRIu64 "> send packet: %.*s", (uint64_t)bytes_written, (int)packet.GetSize(), packet.GetData());
|
||||
}
|
||||
|
||||
m_history.AddPacket (packet.GetString(), packet.GetSize(), History::ePacketTypeSend, bytes_written);
|
||||
|
@ -460,7 +460,7 @@ GDBRemoteCommunication::CheckForPacket (const uint8_t *src, size_t src_len, Stri
|
|||
if (!m_history.DidDumpToLog ())
|
||||
m_history.Dump (log);
|
||||
|
||||
log->Printf("<" PRIx64 "> read packet: %.*s", (uint64_t)total_length, (int)(total_length), m_bytes.c_str());
|
||||
log->Printf("<%4" PRIu64 "> read packet: %.*s", (uint64_t)total_length, (int)(total_length), m_bytes.c_str());
|
||||
}
|
||||
|
||||
m_history.AddPacket (m_bytes.c_str(), total_length, History::ePacketTypeRecv, total_length);
|
||||
|
|
|
@ -2754,7 +2754,7 @@ Process::AllocateMemory(size_t size, uint32_t permissions, Error &error)
|
|||
addr_t allocated_addr = DoAllocateMemory (size, permissions, error);
|
||||
Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS));
|
||||
if (log)
|
||||
log->Printf("Process::AllocateMemory(size=%" PRIx64 ", permissions=%s) => 0x%16.16" PRIx64 " (m_stop_id = %u m_memory_id = %u)",
|
||||
log->Printf("Process::AllocateMemory(size=%" PRIu64 ", permissions=%s) => 0x%16.16" PRIx64 " (m_stop_id = %u m_memory_id = %u)",
|
||||
(uint64_t)size,
|
||||
GetPermissionsAsCString (permissions),
|
||||
(uint64_t)allocated_addr,
|
||||
|
|
Loading…
Reference in New Issue