Skip to content

Commit

Permalink
nvme-print-stdout: Fix to output to take 4 hex digits
Browse files Browse the repository at this point in the history
The 4 hex digits used for the transport and vendor specific offsets.

Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t committed Feb 2, 2024
1 parent d8060e3 commit 587887f
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 @@ -1435,7 +1435,7 @@ static void stdout_ctrl_register(int offset, uint64_t value64)
if (human)
printf("%s: ", nvme_register_to_string(offset));
else
printf("register: 0x%02x (%s), value: ", offset, nvme_register_to_string(offset));
printf("register: 0x%04x (%s), value: ", offset, nvme_register_to_string(offset));

if (nvme_is_64bit_reg(offset))
printf("%"PRIx64"\n", value64);
Expand Down

0 comments on commit 587887f

Please sign in to comment.