]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crush: output --show-bad-mappings on err
authorLoic Dachary <loic@dachary.org>
Sun, 8 Dec 2013 16:57:25 +0000 (17:57 +0100)
committerLoic Dachary <loic@dachary.org>
Sun, 8 Dec 2013 21:17:26 +0000 (22:17 +0100)
Instead of using stdout so that it displays well when used in
conjunction with --show-statistics

Signed-off-by: Loic Dachary <loic@dachary.org>
src/crush/CrushTester.cc

index b38386d0179628588bb13243ee7d934df983f5c9..90a59a998584017d2744014e6275828d9cfa6819 100644 (file)
@@ -511,7 +511,7 @@ int CrushTester::test()
           batch_per[current_batch] = temporary_per;
           sizes[out.size()]++;
           if (output_bad_mappings && out.size() != (unsigned)nr) {
-            cout << "bad mapping rule " << r << " x " << x << " num_rep " << nr << " result " << out << std::endl;
+            err << "bad mapping rule " << r << " x " << x << " num_rep " << nr << " result " << out << std::endl;
           }
         }