systemctl: fix indentation of circular deps

We're still at level `level` here.

Before:
b.target
○ ├─a.target
  │   └─...
● └─paths.target

After:
b.target
○ ├─a.target
  │ └─...
● └─paths.target

Fixes #26052.
This commit is contained in:
David Tardon
2023-03-17 10:05:47 +01:00
parent 77c6bb895a
commit a9f2f486f3
+1 -1
View File
@@ -86,7 +86,7 @@ static int list_dependencies_one(
if (strv_contains(*units, *c)) {
if (!arg_plain) {
printf(" ");
r = list_dependencies_print("...", level + 1, (branches << 1) | (c[1] == NULL ? 0 : 1), /* last = */ true);
r = list_dependencies_print("...", level, branches, /* last = */ true);
if (r < 0)
return r;
}