]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crushtool: send --tree to stdout
authorSage Weil <sage@redhat.com>
Sun, 8 Feb 2015 15:47:23 +0000 (07:47 -0800)
committerDavid Zafman <dzafman@redhat.com>
Sat, 20 Feb 2016 00:56:00 +0000 (16:56 -0800)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit dca345280e4f6124a8b5aea73e6219488111c356)

Conflicts:
src/tools/crushtool.cc (trivial)

src/tools/crushtool.cc

index d576b5ef83093cda68138986cb8a4e897597fb93..a6107650cef62ffcdc96016e681c5c1910ee63a5 100644 (file)
@@ -570,9 +570,7 @@ int main(int argc, const char **argv)
     }
   }
   if (tree) {
-    ostringstream oss;
-    crush.dump_tree(&oss, NULL);
-    dout(1) << "\n" << oss.str() << dendl;
+    crush.dump_tree(&cout, NULL);
   }
 
   if (compile) {