From 801d6ffd8882854680cec8afe8f3c12e858cbeea Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Tue, 19 Jan 2021 11:46:38 -0500 Subject: [PATCH] rbd: deprecation warning should be printed to stderr Signed-off-by: Jason Dillaman (cherry picked from commit 8af6f8bb5fdd9d01f862cdea399b6e489d147259) --- src/tools/rbd/Shell.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/rbd/Shell.cc b/src/tools/rbd/Shell.cc index 15080f372b01a..b3d33e9c81f6f 100644 --- a/src/tools/rbd/Shell.cc +++ b/src/tools/rbd/Shell.cc @@ -126,7 +126,7 @@ void print_deprecated_warning(po::option_description option, std::string descrip auto pos = description.find_first_of(":"); if (pos != std::string::npos) { std::string param = description.substr(pos + 1, description.size() - pos - 2); - std::cout << "rbd: " << option.format_name() << " is deprecated, use --" + std::cerr << "rbd: " << option.format_name() << " is deprecated, use --" << param << std::endl; } } -- 2.39.5