From 81c9a373a2f7362013d058e89716772e25ea82a0 Mon Sep 17 00:00:00 2001 From: green-br Date: Fri, 5 Jul 2024 11:58:54 +0100 Subject: [PATCH 8/8] Update numactl.c Increase field width to align columns on larger systems. --- numactl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/numactl.c b/numactl.c index 64980f3..923be8c 100755 --- a/numactl.c +++ b/numactl.c @@ -225,19 +225,19 @@ static void print_distances(int maxnode) return; } printf("node distances:\n"); - printf("node "); + printf("node "); for (i = 0; i <= maxnode; i++) if (numa_bitmask_isbitset(numa_nodes_ptr, i)) - printf("% 3d ", i); + printf("% 4d ", i); printf("\n"); for (i = 0; i <= maxnode; i++) { if (!numa_bitmask_isbitset(numa_nodes_ptr, i)) continue; - printf("% 3d: ", i); + printf("% 4d: ", i); for (k = 0; k <= maxnode; k++) if (numa_bitmask_isbitset(numa_nodes_ptr, i) && numa_bitmask_isbitset(numa_nodes_ptr, k)) - printf("% 3d ", numa_distance(i,k)); + printf("% 4d ", numa_distance(i,k)); printf("\n"); } } -- 2.41.0