]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-cli: make address print format more human-readable
authorMinwoo Im <minwoo.im.dev@gmail.com>
Sat, 21 Oct 2017 04:23:16 +0000 (13:23 +0900)
committerKeith Busch <keith.busch@intel.com>
Mon, 23 Oct 2017 14:24:08 +0000 (08:24 -0600)
Memory address would be great in hexadecimal format to be read easily.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
nvme-print.c

index 963646744f9efec53a470a5dfe4a95016627cc23..df4ed5953b8fba456c4db272f4ddfac441f2c785 100644 (file)
@@ -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);
 }