The JSON output uses the key 'attrs' for both 'za' and 'zai' members.
Fix this by using 'attrs_info' for the 'zai'.
[dwagner: updated commit messages]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
json_object_add_value_string(zone, "type",
zone_type_to_string(desc->zt));
json_object_add_value_uint(zone, "attrs", desc->za);
- json_object_add_value_uint(zone, "attrs", desc->zai);
+ json_object_add_value_uint(zone, "attrs_info", desc->zai);
if (ext_size) {
if (desc->za & NVME_ZNS_ZA_ZDEV) {