]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/osdmaptool: fix error message if we are unable to parse pgid 9497/head
authorYan Jun <yan.jun8@zte.com.cn>
Sat, 4 Jun 2016 09:08:24 +0000 (17:08 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Sat, 4 Jun 2016 11:01:26 +0000 (19:01 +0800)
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/tools/osdmaptool.cc

index a61346a9b19ee46354cdf1cc5a2fe3395a26d012..a34c0920d8be31f4178439b564c26f85e3d6bbda 100644 (file)
@@ -310,8 +310,7 @@ int main(int argc, const char **argv)
   if (!test_map_pg.empty()) {
     pg_t pgid;
     if (!pgid.parse(test_map_pg.c_str())) {
-      cerr << me << ": failed to parse pg '" << test_map_pg
-          << "', r = " << r << std::endl;
+      cerr << me << ": failed to parse pg '" << test_map_pg << std::endl;
       usage();
     }
     cout << " parsed '" << test_map_pg << "' -> " << pgid << std::endl;