From b3ce3d869a240b432af65ad1ebf33ec56166126a Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Thu, 30 Jun 2022 13:03:11 +0530 Subject: [PATCH] abstraction-map.c: increase the column width to 100 100 column width is more comfortable to read over 80 columns, lets increase it. This patch, also introduced/removes empty lines across the file, making it more readable. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- src/abstraction-map.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/abstraction-map.c b/src/abstraction-map.c index f74aadb2..1735e364 100644 --- a/src/abstraction-map.c +++ b/src/abstraction-map.c @@ -26,10 +26,8 @@ const struct cgroup_abstraction_map cgroup_v1_to_v2_map[] = { {cgroup_convert_unmappable, "cpu.stat", NULL, "cpu.stat", NULL}, /* cpuset controller */ - {cgroup_convert_name_only, "cpuset.effective_cpus", NULL, - "cpuset.cpus.effective", NULL}, - {cgroup_convert_name_only, "cpuset.effective_mems", NULL, - "cpuset.mems.effective", NULL}, + {cgroup_convert_name_only, "cpuset.effective_cpus", NULL, "cpuset.cpus.effective", NULL}, + {cgroup_convert_name_only, "cpuset.effective_mems", NULL, "cpuset.mems.effective", NULL}, {cgroup_convert_passthrough, "cpuset.cpus", NULL, "cpuset.cpus", NULL}, {cgroup_convert_passthrough, "cpuset.mems", NULL, "cpuset.mems", NULL}, {cgroup_convert_cpuset_to_partition, "cpuset.cpu_exclusive", NULL, @@ -44,8 +42,7 @@ const struct cgroup_abstraction_map cgroup_v1_to_v2_map[] = { {cgroup_convert_unmappable, "cpuset.sched_load_balance", NULL, NULL, NULL}, {cgroup_convert_unmappable, "cpuset.sched_relax_domain_level", NULL, NULL, NULL}, }; -const int cgroup_v1_to_v2_map_sz = sizeof(cgroup_v1_to_v2_map) / - sizeof(cgroup_v1_to_v2_map[0]); +const int cgroup_v1_to_v2_map_sz = sizeof(cgroup_v1_to_v2_map) / sizeof(cgroup_v1_to_v2_map[0]); const struct cgroup_abstraction_map cgroup_v2_to_v1_map[] = { /* cpu controller */ @@ -55,14 +52,11 @@ const struct cgroup_abstraction_map cgroup_v2_to_v1_map[] = { {cgroup_convert_unmappable, "cpu.stat", NULL, "cpu.stat", NULL}, /* cpuset controller */ - {cgroup_convert_name_only, "cpuset.cpus.effective", NULL, - "cpuset.effective_cpus", NULL}, - {cgroup_convert_name_only, "cpuset.mems.effective", NULL, - "cpuset.effective_mems", NULL}, + {cgroup_convert_name_only, "cpuset.cpus.effective", NULL, "cpuset.effective_cpus", NULL}, + {cgroup_convert_name_only, "cpuset.mems.effective", NULL, "cpuset.effective_mems", NULL}, {cgroup_convert_passthrough, "cpuset.cpus", NULL, "cpuset.cpus", NULL}, {cgroup_convert_passthrough, "cpuset.mems", NULL, "cpuset.mems", NULL}, {cgroup_convert_cpuset_to_exclusive, "cpuset.cpus.partition", NULL, "cpuset.cpu_exclusive", NULL}, }; -const int cgroup_v2_to_v1_map_sz = sizeof(cgroup_v2_to_v1_map) / - sizeof(cgroup_v2_to_v1_map[0]); +const int cgroup_v2_to_v1_map_sz = sizeof(cgroup_v2_to_v1_map) / sizeof(cgroup_v2_to_v1_map[0]); -- 2.47.2