Skip to contentSkip to conversation

nvme-cli: make address print format more human-readable

PATCH New Minwoo Im 2 participants 2 messages Oct 21, 2017 – Oct 23, 2017 NVMe

lore
Share & tools
lore

Minwoo Im

author
#0 lore raw

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
index 9636467..df4ed59 100644
@@ -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
Applied
#1 lore raw

PATCH 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.