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.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@140185 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
index 0c246f7..1f2ad79 100644
--- a/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -245,7 +245,7 @@
         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 @@
         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 @@
         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))
         {