Use Log::Printf() instead of printf().


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@157869 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index c5fc4af..fc83724 100644
--- a/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -237,7 +237,8 @@
             {
                 if (GetAck () != '+')
                 {
-                    printf("get ack failed...");
+                    if (log)
+                        log->Printf("get ack failed...");
                     return 0;
                 }
             }