nvme-cli: make address print format more human-readable
PATCH 1/1 nvme-cli: make address print format more human-readable
Memory address would be great in hexadecimal format to be read easily.
Signed-off-by Minwoo Im <minwoo.im.dev at gmail.com>
--- nvme-print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
nvme-print.c +2 -2
@@ -1255,8 +1255,8 @@ static void show_auto_pst(struct nvme_auto_pst *apst)static void show_host_mem_buffer (struct nvme_host_mem_buffer *hmb) {printf ("\tHost Memory Descriptor List Entry Count (HMDLEC): %u\n" , hmb->hmdlec); -printf ("\tHost Memory Descriptor List Address (HMDLAU): %u\n" , hmb->hmdlau); -printf ("\tHost Memory Descriptor List Address (HMDLAL): %u\n" , hmb->hmdlal); +printf ("\tHost Memory Descriptor List Address (HMDLAU): 0x%x\n" , hmb->hmdlau); +printf ("\tHost Memory Descriptor List Address (HMDLAL): 0x%x\n" , hmb->hmdlal);printf ("\tHost Memory Buffer Size (HSIZE): %u\n" , hmb->hsize); }
Signature · 1 line
2.7.4
Keith Busch
AppliedPATCH 1/1 nvme-cli: make address print format more human-readable
Quoted 3 lines · Minwoo Im
Memory address would be great in hexadecimal format to be read easily.
Signed-off-by Minwoo Im <minwoo.im.dev at gmail.com>
Applied, thanks.