All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme-cli: make address print format more human-readable
@ 2017-10-21  4:23 Minwoo Im
  2017-10-23 14:24 ` Keith Busch
  0 siblings, 1 reply; 2+ messages in thread
From: Minwoo Im @ 2017-10-21  4:23 UTC (permalink / raw)


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(-)

diff --git a/nvme-print.c b/nvme-print.c
index 9636467..df4ed59 100644
--- a/nvme-print.c
+++ b/nvme-print.c
@@ -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);
 }
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] nvme-cli: make address print format more human-readable
  2017-10-21  4:23 [PATCH] nvme-cli: make address print format more human-readable Minwoo Im
@ 2017-10-23 14:24 ` Keith Busch
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Busch @ 2017-10-23 14:24 UTC (permalink / raw)


On Sat, Oct 21, 2017@01:23:16PM +0900, Minwoo Im wrote:
> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-23 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-21  4:23 [PATCH] nvme-cli: make address print format more human-readable Minwoo Im
2017-10-23 14:24 ` Keith Busch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.