]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
tools/cgclassify: fix error msg in find_scope_pid()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 6 Sep 2023 10:55:20 +0000 (16:25 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 13 Oct 2023 20:32:13 +0000 (14:32 -0600)
Un-split the error message by removing the newline character in the
err() in the find_scope_pid().

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

index d3a7b71502d054b3bc7a8cdcf41b3353a5ef6e8e..fb5841fea995879dce1e87ad08858ebebb0e68cb 100644 (file)
@@ -416,8 +416,8 @@ static pid_t find_scope_pid(pid_t pid, int capture)
                }
 
                if (_scope_pid != scope_pid) {
-                       err("Failed to replace scope idle_thread, found two idle_thread\n");
-                       err(" %u %u\n", scope_pid, _scope_pid);
+                       err("Failed to replace scope idle_thread, found two idle_thread %u %u\n",
+                           scope_pid, _scope_pid);
                        scope_pid = -1;
                        goto out;
                }