]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
tools/cgexec: 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/cgexec.c

index 863d4fb58d48ebab1b5cd92d44f774aaa82a4ad2..ba8b8b95b9609530edcdad6551b2ab7992e23810 100644 (file)
@@ -354,8 +354,8 @@ static pid_t find_scope_pid(pid_t pid)
                }
 
                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);
                        goto out;
                }
        }