From: Jason Dillaman Date: Tue, 19 Jan 2021 16:46:38 +0000 (-0500) Subject: rbd: deprecation warning should be printed to stderr X-Git-Tag: v16.1.0~1^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=801d6ffd8882854680cec8afe8f3c12e858cbeea;p=ceph.git rbd: deprecation warning should be printed to stderr Signed-off-by: Jason Dillaman (cherry picked from commit 8af6f8bb5fdd9d01f862cdea399b6e489d147259) --- diff --git a/src/tools/rbd/Shell.cc b/src/tools/rbd/Shell.cc index 15080f372b01..b3d33e9c81f6 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; } }