diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-08-20 10:54:49 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-08-20 11:09:48 +0200 |
commit | 85b55869bc1065754fdd35ef43ff324cc5e3ef2e (patch) | |
tree | 013fe377acb8a8617c700af9b14fa3be95acb06c /src/core/cgroup.c | |
parent | sd-id128: add compound literal love to sd_id128_to_string() + id128_to_uuid_s... (diff) | |
download | systemd-85b55869bc1065754fdd35ef43ff324cc5e3ef2e.tar.xz systemd-85b55869bc1065754fdd35ef43ff324cc5e3ef2e.zip |
tree-wide: port everything over to new sd-id128 compund literal bliss
Diffstat (limited to 'src/core/cgroup.c')
-rw-r--r-- | src/core/cgroup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 5b612ee22b..4b6fd525bb 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -738,7 +738,6 @@ void cgroup_oomd_xattr_apply(Unit *u, const char *cgroup_path) { } static void cgroup_xattr_apply(Unit *u) { - char ids[SD_ID128_STRING_MAX]; int r; assert(u); @@ -749,7 +748,7 @@ static void cgroup_xattr_apply(Unit *u) { if (!sd_id128_is_null(u->invocation_id)) { r = cg_set_xattr(SYSTEMD_CGROUP_CONTROLLER, u->cgroup_path, "trusted.invocation_id", - sd_id128_to_string(u->invocation_id, ids), 32, + SD_ID128_TO_STRING(u->invocation_id), 32, 0); if (r < 0) log_unit_debug_errno(u, r, "Failed to set invocation ID on control group %s, ignoring: %m", empty_to_root(u->cgroup_path)); |