summaryrefslogtreecommitdiffstats
path: root/src/machine-id-setup
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-08-20 10:54:49 +0200
committerLennart Poettering <lennart@poettering.net>2021-08-20 11:09:48 +0200
commit85b55869bc1065754fdd35ef43ff324cc5e3ef2e (patch)
tree013fe377acb8a8617c700af9b14fa3be95acb06c /src/machine-id-setup
parentsd-id128: add compound literal love to sd_id128_to_string() + id128_to_uuid_s... (diff)
downloadsystemd-85b55869bc1065754fdd35ef43ff324cc5e3ef2e.tar.xz
systemd-85b55869bc1065754fdd35ef43ff324cc5e3ef2e.zip
tree-wide: port everything over to new sd-id128 compund literal bliss
Diffstat (limited to 'src/machine-id-setup')
-rw-r--r--src/machine-id-setup/machine-id-setup-main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/machine-id-setup/machine-id-setup-main.c b/src/machine-id-setup/machine-id-setup-main.c
index 0f8bc43ab5..44fcdaae81 100644
--- a/src/machine-id-setup/machine-id-setup-main.c
+++ b/src/machine-id-setup/machine-id-setup-main.c
@@ -127,7 +127,6 @@ static int run(int argc, char *argv[]) {
_cleanup_(loop_device_unrefp) LoopDevice *loop_device = NULL;
_cleanup_(decrypted_image_unrefp) DecryptedImage *decrypted_image = NULL;
_cleanup_(umount_and_rmdir_and_freep) char *unlink_dir = NULL;
- char buf[SD_ID128_STRING_MAX];
sd_id128_t id;
int r;
@@ -177,7 +176,7 @@ static int run(int argc, char *argv[]) {
}
if (arg_print)
- puts(sd_id128_to_string(id, buf));
+ puts(SD_ID128_TO_STRING(id));
return 0;
}