From 4fb310e88369385c7840e8de7a648c11897d6b54 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Tue, 30 Oct 2012 18:01:15 +0000 Subject: [PATCH] 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) llvm-svn: 167030 --- lldb/examples/plugins/commands/fooplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/examples/plugins/commands/fooplugin.cpp b/lldb/examples/plugins/commands/fooplugin.cpp index aa97d89..2aaf8ff 100644 --- a/lldb/examples/plugins/commands/fooplugin.cpp +++ b/lldb/examples/plugins/commands/fooplugin.cpp @@ -35,7 +35,7 @@ public: const char* arg = *command; while (arg) { - printf("%s\n",arg); + result.Printf("%s\n",arg); arg = *(++command); } return true; -- 2.7.4