From 60db6e3e394df1e4110eefa5951657b648b02006 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Thu, 17 Jan 2013 11:32:03 -0800 Subject: [PATCH] crushtool: warn usefully about missing output spec When running with --test, you must request output to CSV files or specific types of output to --show-X; make the error message clarify what the tool wants. Fixes: #3827 Signed-off-by: Dan Mick Reviewed-by: Sage Weil --- src/crushtool.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crushtool.cc b/src/crushtool.cc index 6584be54d5a8e..3cbd915a3215e 100644 --- a/src/crushtool.cc +++ b/src/crushtool.cc @@ -413,7 +413,7 @@ int main(int argc, const char **argv) } if (test && !display && !write_to_file) { - cerr << "WARNING: no output selected (via -o )" << std::endl; + cerr << "WARNING: no output selected; use --output-csv or --show-X" << std::endl; exit(EXIT_FAILURE); } -- 2.39.5