Skip to content

Commit 962b197

Browse files
ikegami-tigaw
authored andcommitted
nvme-print-json: Fix LBA status DSLBA output as hexadecimal
The output printed with the 0x prefix but as not hexadecimal. Same change for nvme-print-stdout below. 7b4b50f ("nvme-print-stdout: Fix LBA status DSLBA output as hexadecimal") Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent 3d6f3ad commit 962b197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvme-print-json.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ static void json_lba_status(struct nvme_lba_status *list,
18681868
sprintf(json_str, "LSD entry %d", idx);
18691869
obj_add_array(r, json_str, lsde);
18701870
e = &list->descs[idx];
1871-
sprintf(json_str, "0x%016"PRIu64"", le64_to_cpu(e->dslba));
1871+
sprintf(json_str, "0x%016"PRIx64"", le64_to_cpu(e->dslba));
18721872
obj_add_str(lsde, "DSLBA", json_str);
18731873
sprintf(json_str, "0x%08x", le32_to_cpu(e->nlb));
18741874
obj_add_str(lsde, "NLB", json_str);

0 commit comments

Comments
 (0)