Make cmd_log_argv take a printf-like format for the prefix.

This commit is contained in:
nicm
2019-05-25 06:58:10 +00:00
parent 0dc8b7d5d8
commit 930245d7ff
3 changed files with 15 additions and 8 deletions

View File

@ -329,7 +329,7 @@ spawn_pane(struct spawn_context *sc, char **cause)
}
if (cwd != NULL)
log_debug("%s: cwd=%s", __func__, cwd);
cmd_log_argv(new_wp->argc, new_wp->argv, __func__);
cmd_log_argv(new_wp->argc, new_wp->argv, "%s", __func__);
environ_log(child, "%s: environment ", __func__);
/* If the command is empty, don't fork a child process. */