]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: use dump_unsigned consistent with the variable's type
authorYan Jun <yan.jun8@zte.com.cn>
Tue, 27 Jun 2017 09:16:43 +0000 (17:16 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Tue, 27 Jun 2017 09:17:12 +0000 (17:17 +0800)
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/osd/OSD.cc

index 142f3b2aa8494bd7ee8457a676d429107c3a4cd3..b14bbff6b6c4e016f90556e183cd56415074a546 100644 (file)
@@ -2110,8 +2110,8 @@ bool OSD::asok_command(string admin_command, cmdmap_t& cmdmap, string format,
       it->wi.name.dump(f);
       f->close_section(); //entity_name_t
 
-      f->dump_int("cookie", it->wi.cookie);
-      f->dump_int("timeout", it->wi.timeout_seconds);
+      f->dump_unsigned("cookie", it->wi.cookie);
+      f->dump_unsigned("timeout", it->wi.timeout_seconds);
 
       f->open_object_section("entity_addr_t");
       it->wi.addr.dump(f);