Replace printf with result.Printf, so that the plugin shows its output with any configuration of the LLDB I/O streams (esp. useful in graphic environments such as Xcode)



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@167030 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/examples/plugins/commands/fooplugin.cpp b/examples/plugins/commands/fooplugin.cpp
index aa97d89..2aaf8ff 100644
--- a/examples/plugins/commands/fooplugin.cpp
+++ b/examples/plugins/commands/fooplugin.cpp
@@ -35,7 +35,7 @@
             const char* arg = *command;
             while (arg)
             {
-                printf("%s\n",arg);
+                result.Printf("%s\n",arg);
                 arg = *(++command);
             }
             return true;