tmpfiles: properly prefix paths in debug outputs
This is otherwise very confusing...
This commit is contained in:
parent
b63aacaa1a
commit
b8e35011f7
|
@ -3276,10 +3276,20 @@ static int run(int argc, char *argv[]) {
|
||||||
|
|
||||||
if (DEBUG_LOGGING) {
|
if (DEBUG_LOGGING) {
|
||||||
_cleanup_free_ char *t = NULL;
|
_cleanup_free_ char *t = NULL;
|
||||||
|
char **i;
|
||||||
|
|
||||||
t = strv_join(config_dirs, "\n\t");
|
STRV_FOREACH(i, config_dirs) {
|
||||||
if (t)
|
_cleanup_free_ char *j = NULL;
|
||||||
log_debug("Looking for configuration files in (higher priority first):\n\t%s", t);
|
|
||||||
|
j = path_join(arg_root, *i);
|
||||||
|
if (!j)
|
||||||
|
return log_oom();
|
||||||
|
|
||||||
|
if (!strextend(&t, "\n\t", j, NULL))
|
||||||
|
return log_oom();
|
||||||
|
}
|
||||||
|
|
||||||
|
log_debug("Looking for configuration files in (higher priority first):%s", t);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (arg_cat_config) {
|
if (arg_cat_config) {
|
||||||
|
|
Loading…
Reference in a new issue