Skip to content

Commit 8b9c664

Browse files
committed
nvme-print: update fid-support-effects-log output
Fix the FID id discrepancy in the fid-support-effects-log JSON output compared to the normal output. Signed-off-by: Martin George <[email protected]>
1 parent 4d17bf7 commit 8b9c664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvme-print-json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2069,7 +2069,7 @@ static void json_fid_support_effects_log(
20692069
fid_support = le32_to_cpu(fid_log->fid_support[fid]);
20702070
if (fid_support & NVME_FID_SUPPORTED_EFFECTS_FSUPP) {
20712071
fids = json_create_object();
2072-
sprintf(key, "fid_%u", fid);
2072+
sprintf(key, "fid_%02x", fid);
20732073
obj_add_uint(fids, key, fid_support);
20742074
array_add_obj(fids_list, fids);
20752075
}

0 commit comments

Comments
 (0)