numactl/0008-Update-numactl.c.patch
Pingfan Liu 1f4dc9ba90 Release 2.0.18-2
Resolves: https://issues.redhat.com/browse/RHEL-46191

Signed-off-by: Pingfan Liu <piliu@redhat.com>
2024-08-02 09:12:07 +08:00

42 lines
1.1 KiB
Diff

From 81c9a373a2f7362013d058e89716772e25ea82a0 Mon Sep 17 00:00:00 2001
From: green-br <thomas.green@bristol.ac.uk>
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