Replace printf with result.Printf, so that the plugin shows its output with any confi...
authorEnrico Granata <egranata@apple.com>
Tue, 30 Oct 2012 18:01:15 +0000 (18:01 +0000)
committerEnrico Granata <egranata@apple.com>
Tue, 30 Oct 2012 18:01:15 +0000 (18:01 +0000)
llvm-svn: 167030

lldb/examples/plugins/commands/fooplugin.cpp

index aa97d89..2aaf8ff 100644 (file)
@@ -35,7 +35,7 @@ public:
             const char* arg = *command;
             while (arg)
             {
-                printf("%s\n",arg);
+                result.Printf("%s\n",arg);
                 arg = *(++command);
             }
             return true;