]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cgls/cgtop: spell field/column "CGroup" rather than "Control Group"
authorLennart Poettering <lennart@poettering.net>
Mon, 5 Jun 2023 16:40:26 +0000 (18:40 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 5 Jun 2023 18:35:28 +0000 (03:35 +0900)
In the documentation we usually spell the concept "control group".
Internally in code we usually call it "cgroup" or "CGroup". In systemctl output we
called the field "CGroup" so far, i.e. a capitalized version of the
internal name. This is of course very unsystematic. Let's clean this up
a bit: let's now say:

* in docs, continue to spell it out "control groups"
* in brief output call it "CGroup"
* internally call it "cgroup" or "CGroup"

Fixes: #14429
src/cgls/cgls.c
src/cgtop/cgtop.c

index a34b0aa604b0da2d2d8dbc873afefa744e4a1feb..70fa260246929ea1e66b6a0b8b9869c63ca25b40 100644 (file)
@@ -185,7 +185,7 @@ static void show_cg_info(const char *controller, const char *path) {
         if (cg_all_unified() == 0 && controller && !streq(controller, SYSTEMD_CGROUP_CONTROLLER))
                 printf("Controller %s; ", controller);
 
-        printf("Control group %s:\n", empty_to_root(path));
+        printf("CGroup %s:\n", empty_to_root(path));
         fflush(stdout);
 }
 
index bb4f7a5ef0997742a91e7fb3828402d189761897..987643f661724f63459f76ea8eeeb242671a7cc7 100644 (file)
@@ -647,7 +647,7 @@ static void display(Hashmap *a) {
 
                 printf("%s%s%-*s%s %s%7s%s %s%*s%s %s%8s%s %s%8s%s %s%8s%s%s\n",
                        ansi_underline(),
-                       arg_order == ORDER_PATH ? on : "", path_columns, "Control Group",
+                       arg_order == ORDER_PATH ? on : "", path_columns, "CGroup",
                        arg_order == ORDER_PATH ? off : "",
                        arg_order == ORDER_TASKS ? on : "",
                        arg_count == COUNT_PIDS ? "Tasks" : arg_count == COUNT_USERSPACE_PROCESSES ? "Procs" : "Proc+",