]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: deprecation warning should be printed to stderr 38986/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 19 Jan 2021 16:46:38 +0000 (11:46 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 20 Jan 2021 13:48:56 +0000 (08:48 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 8af6f8bb5fdd9d01f862cdea399b6e489d147259)

src/tools/rbd/Shell.cc

index 15080f372b01af913a66c459da897af90d2e8016..b3d33e9c81f6f151c82d4e979c209b4304dd038f 100644 (file)
@@ -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;
   }
 }