From: Lennart Poettering Date: Sat, 10 Apr 2010 15:46:01 +0000 (+0200) Subject: execute: improve exec_spawn() logging X-Git-Tag: 0.git+20100605+dfd8ee-1~166 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a63a750108b280070ed43e0dc02adb2c99c97cb;p=systemd execute: improve exec_spawn() logging --- diff --git a/execute.c b/execute.c index e4a70cd0..46a98320 100644 --- a/execute.c +++ b/execute.c @@ -457,13 +457,18 @@ int exec_spawn(ExecCommand *command, pid_t pid; int r; + char *line; assert(command); assert(context); assert(ret); assert(fds || n_fds <= 0); - log_debug("About to execute %s", command->path); + if (!(line = exec_command_line(command))) + return -ENOMEM; + + log_debug("About to execute: %s", line); + free(line); if (cgroup_bondings) if ((r = cgroup_bonding_realize_list(cgroup_bondings)))