From 83066d7010ee4fc6cd0dcfcd749cc2cebd3ed534 Mon Sep 17 00:00:00 2001 From: Klaus Jensen Date: Thu, 26 Jan 2023 09:32:10 +0100 Subject: [PATCH] nvme-print: print unused reclaim unit handles Add printing the "Unused" attribute of reclaim unit handles. Signed-off-by: Klaus Jensen --- nvme-print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvme-print.c b/nvme-print.c index eb057215..53b7223d 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -2442,9 +2442,9 @@ void nvme_show_fdp_usage(struct nvme_fdp_ruhu_log *log, size_t len, struct nvme_fdp_ruhu_desc *ruhu = &log->ruhus[i]; printf("Reclaim Unit Handle %d Attributes: 0x%"PRIx8" (%s)\n", i, ruhu->ruha, + ruhu->ruha == 0x0 ? "Unused" : ( ruhu->ruha == 0x1 ? "Host Specified" : ( - ruhu->ruha == 0x2 ? "Controller Specified" : - "Unknown")); + ruhu->ruha == 0x2 ? "Controller Specified" : "Unknown"))); } } -- 2.50.1