]> 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)
committerDaniel Wagner <dwagner@suse.de>
Mon, 15 Nov 2021 11:06:29 +0000 (12:06 +0100)
commitedc1b59982abfffc3dc110833a55c70ad38a317b
tree62a499c3e1d120199d9e0c923a9401dceef4e738
parentf635b0f837d57b69093195a6f57826e50aad13f6
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