]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/hobject: print shard as unsigned, not as char
authorSamuel Just <sam.just@inktank.com>
Sun, 8 Dec 2013 06:18:24 +0000 (22:18 -0800)
committerSamuel Just <sam.just@inktank.com>
Wed, 22 Jan 2014 22:39:17 +0000 (14:39 -0800)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/common/hobject.cc

index b68baedd5249582271e1b663793a487aa0dab541..ffc73aa39e3d7287287f35ce870eb4d274f9aede 100644 (file)
@@ -274,7 +274,7 @@ ostream& operator<<(ostream& out, const ghobject_t& o)
   out << o.hobj;
   if (o.generation != ghobject_t::NO_GEN) {
     assert(o.shard_id != ghobject_t::NO_SHARD);
-    out << "/" << o.generation << "/" << o.shard_id;
+    out << "/" << o.generation << "/" << (unsigned)(o.shard_id);
   }
   return out;
 }