summaryrefslogtreecommitdiffstats
path: root/src/common/ceph_json.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/ceph_json.cc')
-rw-r--r--src/common/ceph_json.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/ceph_json.cc b/src/common/ceph_json.cc
index ad3d70846d2..502ffb58e70 100644
--- a/src/common/ceph_json.cc
+++ b/src/common/ceph_json.cc
@@ -468,17 +468,17 @@ void encode_json(const char *name, long val, Formatter *f)
void encode_json(const char *name, unsigned val, Formatter *f)
{
- f->dump_int(name, val);
+ f->dump_unsigned(name, val);
}
void encode_json(const char *name, unsigned long val, Formatter *f)
{
- f->dump_int(name, val);
+ f->dump_unsigned(name, val);
}
void encode_json(const char *name, unsigned long long val, Formatter *f)
{
- f->dump_int(name, val);
+ f->dump_unsigned(name, val);
}
void encode_json(const char *name, long long val, Formatter *f)