Skip to content

Commit 7b4b50f

Browse files
ikegami-tigaw
authored andcommitted
nvme-print-stdout: Fix LBA status DSLBA output as hexadecimal
The output printed with the 0x prefix but as not hexadecimal. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent 6c0d597 commit 7b4b50f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvme-print-stdout.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4636,7 +4636,7 @@ static void stdout_lba_status(struct nvme_lba_status *list,
46364636
for (idx = 0; idx < list->nlsd; idx++) {
46374637
struct nvme_lba_status_desc *e = &list->descs[idx];
46384638

4639-
printf("{ DSLBA: 0x%016"PRIu64", NLB: 0x%08x, Status: 0x%02x }\n",
4639+
printf("{ DSLBA: 0x%016"PRIx64", NLB: 0x%08x, Status: 0x%02x }\n",
46404640
le64_to_cpu(e->dslba), le32_to_cpu(e->nlb),
46414641
e->status);
46424642
}

0 commit comments

Comments
 (0)