execute: note the phase each executor is being invoked in

This commit is contained in:
Ariadne Conill 2020-08-26 02:06:36 -06:00
parent b30f84fdbd
commit 4d64176ea3
3 changed files with 15 additions and 15 deletions

View file

@ -140,10 +140,10 @@ lif_file_is_executable(const char *path)
}
bool
lif_maybe_run_executor(const struct lif_execute_opts *opts, char *const envp[], const char *executor)
lif_maybe_run_executor(const struct lif_execute_opts *opts, char *const envp[], const char *executor, const char *phase)
{
if (opts->verbose)
fprintf(stderr, "ifupdown: attempting to run %s executor\n", executor);
fprintf(stderr, "ifupdown: attempting to run %s executor for phase %s\n", executor, phase);
char pathbuf[4096];
@ -156,10 +156,10 @@ lif_maybe_run_executor(const struct lif_execute_opts *opts, char *const envp[],
}
bool
lif_maybe_run_executor_with_result(const struct lif_execute_opts *opts, char *const envp[], const char *executor, char *buf, size_t bufsize)
lif_maybe_run_executor_with_result(const struct lif_execute_opts *opts, char *const envp[], const char *executor, char *buf, size_t bufsize, const char *phase)
{
if (opts->verbose)
fprintf(stderr, "ifupdown: attempting to run %s executor\n", executor);
fprintf(stderr, "ifupdown: attempting to run %s executor for phase %s\n", executor, phase);
char pathbuf[4096];