From fd54b368ea4d1bd481ac4d203362c2a5556418d0 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 20 Sep 2011 21:44:10 +0000 Subject: Update declarations for all functions/methods that accept printf-style stdarg formats to use __attribute__ format so the compiler can flag incorrect uses. Fix all incorrect uses. Most of these are innocuous, a few were resulting in crashes. llvm-svn: 140185 --- .../Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp') diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index 0c246f7e389..1f2ad798131 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -245,7 +245,7 @@ GDBRemoteCommunicationClient::SendPacketAndWaitForResponse else { if (log) - log->Printf("error: failed to send '%*s'", payload_length, payload); + log->Printf("error: failed to send '%*s'", (int) payload_length, payload); } } else @@ -311,13 +311,13 @@ GDBRemoteCommunicationClient::SendPacketAndWaitForResponse else { if (log) - log->Printf("error: packet mutex taken and send_async == false, not sending packet '%*s'", payload_length, payload); + log->Printf("error: packet mutex taken and send_async == false, not sending packet '%*s'", (int) payload_length, payload); } } if (response_len == 0) { if (log) - log->Printf("error: failed to get response for '%*s'", payload_length, payload); + log->Printf("error: failed to get response for '%*s'", (int) payload_length, payload); } return response_len; } @@ -385,7 +385,7 @@ GDBRemoteCommunicationClient::SendContinuePacketAndWaitForResponse got_stdout = false; if (log) - log->Printf ("GDBRemoteCommunicationClient::%s () WaitForPacket(%.*s)", __FUNCTION__); + log->Printf ("GDBRemoteCommunicationClient::%s () WaitForPacket(%s)", __FUNCTION__, continue_packet.c_str()); if (WaitForPacketWithTimeoutMicroSeconds (response, UINT32_MAX)) { -- cgit v1.2.3