diff options
author | Maanya Goenka <t-magoenka@microsoft.com> | 2021-07-29 22:01:08 +0200 |
---|---|---|
committer | Maanya Goenka <t-magoenka@microsoft.com> | 2021-08-12 16:22:15 +0200 |
commit | 1545051c79104365a22c9449a470e96c8658689b (patch) | |
tree | ec251b78320ef5fef13d08631a510dbee00af7b5 /src/core | |
parent | Merge pull request #20199 from ddstreet/unit_cgroup_catchup (diff) | |
download | systemd-1545051c79104365a22c9449a470e96c8658689b.tar.xz systemd-1545051c79104365a22c9449a470e96c8658689b.zip |
manager: use FLAGS_SET when checking for MANAGER_TEST_RUN_MINIMAL
Allows multiple flags to be set, for example, in systemd-analyze.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index e67f320bca..63679268fb 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -1541,7 +1541,7 @@ Manager* manager_free(Manager *m) { static void manager_enumerate_perpetual(Manager *m) { assert(m); - if (m->test_run_flags == MANAGER_TEST_RUN_MINIMAL) + if (FLAGS_SET(m->test_run_flags, MANAGER_TEST_RUN_MINIMAL)) return; /* Let's ask every type to load all units from disk/kernel that it might know */ @@ -1559,7 +1559,7 @@ static void manager_enumerate_perpetual(Manager *m) { static void manager_enumerate(Manager *m) { assert(m); - if (m->test_run_flags == MANAGER_TEST_RUN_MINIMAL) + if (FLAGS_SET(m->test_run_flags, MANAGER_TEST_RUN_MINIMAL)) return; /* Let's ask every type to load all units from disk/kernel that it might know */ |