From 4a9479f39be409cbb0df9d405a297950d477bbe5 Mon Sep 17 00:00:00 2001 From: Tokunori Ikegami Date: Sun, 12 Oct 2025 22:05:46 +0900 Subject: [PATCH] nvme-print-stdout: fix detailed list row field width The column field width was expanded but the row was not changed. Fixes: b32a79c15696 ("nvme-print: expand the maximum field length to prevent misalignment") Signed-off-by: Tokunori Ikegami --- nvme-print-stdout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvme-print-stdout.c b/nvme-print-stdout.c index 6a3572e62c..bf6d26708c 100644 --- a/nvme-print-stdout.c +++ b/nvme-print-stdout.c @@ -5576,7 +5576,7 @@ static bool stdout_detailed_ctrl(const char *name, void *arg) c = htable_ctrl_get(&res->ht_c, name); assert(c); - printf("%-8s %-6s %-20s %-40s %-8s %-6s %-14s %-6s %-12s ", + printf("%-16s %-6s %-20s %-40s %-8s %-6s %-14s %-6s %-12s ", nvme_ctrl_get_name(c), nvme_ctrl_get_cntlid(c), nvme_ctrl_get_serial(c), @@ -5657,7 +5657,7 @@ static void stdout_detailed_list(nvme_root_t r) strset_iterate(&res.subsystems, stdout_detailed_subsys, &res); printf("\n"); - printf("%-16s %-5s %-20s %-40s %-8s %-6s %-14s %-6s %-12s %-16s\n", "Device", + printf("%-16s %-6s %-20s %-40s %-8s %-6s %-14s %-6s %-12s %-16s\n", "Device", "Cntlid", "SN", "MN", "FR", "TxPort", "Address", "Slot", "Subsystem", "Namespaces"); printf("%-.16s %-.6s %-.20s %-.40s %-.8s %-.6s %-.14s %-.6s %-.12s %-.16s\n",