tools/osdmaptool: fix error message if we are unable to parse pgid

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
This commit is contained in:
Yan Jun 2016-06-04 17:08:24 +08:00
parent c97ec99579
commit 6592046cc7

View 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;