From: John Spray Date: Mon, 20 Apr 2015 16:28:15 +0000 (+0100) Subject: ceph-objectstore-tool: Add a couple of strategically placed prints X-Git-Tag: v0.94.7~28^2~11^2~30 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3a533d767bafc466e653bdd89d064b5f2b9aa257;p=ceph.git ceph-objectstore-tool: Add a couple of strategically placed prints Signed-off-by: John Spray (cherry picked from commit fdb1a4b676765c5d3ca5d436f34230dd6996d7a7) --- diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index 6edec1c6c43..d22f4e39f97 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -1524,6 +1524,7 @@ int get_object(ObjectStore *store, coll_t coll, bufferlist &bl, OSDMap &curmap) done = true; break; default: + cerr << "Unknown section type " << type << std::endl; return -EFAULT; } } @@ -1649,6 +1650,7 @@ int do_import_rados(string pool) if (ret) return ret; if (type != TYPE_PG_BEGIN) { + cerr << "Invalid first section type " << type << std::endl; return -EFAULT; } @@ -1910,6 +1912,7 @@ int do_import(ObjectStore *store, OSDSuperblock& sb, bool force) done = true; break; default: + cerr << "Unknown section type " << type << std::endl; return -EFAULT; } }