From 8b9c66404a05e5e31a19fbca72444510153c3681 Mon Sep 17 00:00:00 2001 From: Martin George Date: Fri, 10 Oct 2025 18:24:30 +0530 Subject: [PATCH] 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 --- nvme-print-json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvme-print-json.c b/nvme-print-json.c index bb94dad670..d57d2a3a6e 100644 --- a/nvme-print-json.c +++ b/nvme-print-json.c @@ -2069,7 +2069,7 @@ static void json_fid_support_effects_log( fid_support = le32_to_cpu(fid_log->fid_support[fid]); if (fid_support & NVME_FID_SUPPORTED_EFFECTS_FSUPP) { fids = json_create_object(); - sprintf(key, "fid_%u", fid); + sprintf(key, "fid_%02x", fid); obj_add_uint(fids, key, fid_support); array_add_obj(fids_list, fids); }