Skip to content

Commit

Permalink
nvme-print-stdout: Fix LBA status DSLBA output as hexadecimal
Browse files Browse the repository at this point in the history
The output printed with the 0x prefix but as not hexadecimal.

Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t authored and igaw committed Mar 18, 2024
1 parent 6c0d597 commit 7b4b50f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvme-print-stdout.c
Original file line number Diff line number Diff line change
Expand Up @@ -4636,7 +4636,7 @@ static void stdout_lba_status(struct nvme_lba_status *list,
for (idx = 0; idx < list->nlsd; idx++) {
struct nvme_lba_status_desc *e = &list->descs[idx];

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

0 comments on commit 7b4b50f

Please sign in to comment.