]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
tools/cgget: fix coding style complaint
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 11 Aug 2023 06:55:04 +0000 (12:25 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 11 Aug 2023 17:37:54 +0000 (11:37 -0600)
Fix the checkpatch.pl warnings, making it coding style complaint.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/tools/cgget.c

index 07f1fb2d8ff0987d495897029920110d31358fa5..80f113bdd3900f75a3cd9ca82e3ad429a85fe1cd 100644 (file)
@@ -839,7 +839,7 @@ static int find_cgroup_mount_type(void)
        int ret = 0;
 
        setup_mode = cgroup_setup_mode();
-       switch(setup_mode) {
+       switch (setup_mode) {
        case CGROUP_MODE_LEGACY:
                info("Legacy Mode (Cgroup v1 only).\n");
                break;
@@ -866,7 +866,7 @@ static int print_controller_version(void)
        int ret = 0;
 
        /* perf_event controller is the one with the lengthiest name */
-       info("%-11s\t%-7s\n", "#Controller","Version");
+       info("%-11s\t%-7s\n", "#Controller", "Version");
        ret = cgroup_get_controller_begin(&handle, &controller);
        while (ret == 0) {
                ret = cgroup_get_controller_version(controller.name, &version);