diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-10 17:46:01 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-10 18:00:34 +0200 |
commit | 1a63a750108b280070ed43e0dc02adb2c99c97cb (patch) | |
tree | 31b9a43075da86351412181cba9c3ead06343385 /execute.c | |
parent | 6326a423e7d3df2062bf29a4e9710aeecac89411 (diff) |
execute: improve exec_spawn() logging
Diffstat (limited to 'execute.c')
-rw-r--r-- | execute.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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))) |