]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
Bug fix unsigned int and int should use 64bit api for json-c
authorSteven Seungcheol Lee <sc108.lee@samsung.com>
Mon, 2 Aug 2021 07:00:35 +0000 (16:00 +0900)
committerKeith Busch <kbusch@kernel.org>
Fri, 6 Aug 2021 20:08:22 +0000 (14:08 -0600)
commitd127537694e5953551d58acf8717ab1483c38ed3
treed2c57ddfbdea8ca4019f8733fa35a5df71cd7829
parent9709fb8314c43cabe459a490d25faa6d3502cc77
Bug fix unsigned int and int should use 64bit api for json-c

unsigned int should use json_object_new_uint64(json-c >= 0.14-20200419)
    Error examples
    nsze    : 0xe8e088b0
    {
      "nsze":-387938128
    }
    After fix this
    {
      "nsze":3907029168
    }
json_object_add_value_int also should use json_object_new_int64
    since util/json.h support long long type, and other codes are using it for 64bit values

Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
nvme.h