]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
tools/lssubsys: fix spellings across the file
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 14 Aug 2023 07:55:35 +0000 (13:25 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 16 Aug 2023 15:26:18 +0000 (09:26 -0600)
Fix the spelling mistakes across the file and also fix word case.

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

index c143d175ef6cdaabddea8f6303af30ef39a6f568..f8d16a495f71908ba87badfba435110c7f9fe914 100644 (file)
@@ -109,7 +109,7 @@ static int print_all_controllers_in_hierarchy(const char *tname, int hierarchy,
                        goto end;
 
                /*
-                * v1 controllers should be in the hierachy.
+                * v1 controllers should be in the hierarchy.
                 * v2 controllers will have a hierarchy value of zero
                 */
                if (version == CGROUP_V1 && info.hierarchy != hierarchy)
@@ -165,7 +165,7 @@ static int cgroup_list_all_controllers(const char *tname, cont_name_t cont_name[
        ret = cgroup_get_all_controller_begin(&handle, &info);
        while (ret == 0) {
                if (info.hierarchy == 0) {
-                       /* the controller is not attached to any hierachy */
+                       /* the controller is not attached to any hierarchy */
                        if (flags & FL_ALL) {
                                /* display only if -a flag is set */
                                info("%s\n", info.name);