summaryrefslogtreecommitdiffstats
path: root/src/systemctl/systemctl-list-dependencies.c
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2023-03-17 09:53:23 +0100
committerDavid Tardon <dtardon@redhat.com>2023-03-17 10:05:47 +0100
commita9f2f486f3d1dd1cd2a58cd384b0e88970e2fda9 (patch)
tree5790be7d3f6d8167661cddf36f95925b8d790655 /src/systemctl/systemctl-list-dependencies.c
parentMerge pull request #26803 from yuwata/udevadm-verify-summary (diff)
downloadsystemd-a9f2f486f3d1dd1cd2a58cd384b0e88970e2fda9.tar.xz
systemd-a9f2f486f3d1dd1cd2a58cd384b0e88970e2fda9.zip
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.
Diffstat (limited to 'src/systemctl/systemctl-list-dependencies.c')
-rw-r--r--src/systemctl/systemctl-list-dependencies.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl-list-dependencies.c b/src/systemctl/systemctl-list-dependencies.c
index 6878954268..e0e5ca9ef8 100644
--- a/src/systemctl/systemctl-list-dependencies.c
+++ b/src/systemctl/systemctl-list-dependencies.c
@@ -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;
}