From: Zbigniew Jędrzejewski-Szmek Date: Tue, 15 Feb 2022 09:50:43 +0000 (+0100) Subject: homework: avoid runtime formatting of a fixed string X-Git-Tag: v251-rc1~289^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F22516%2Fhead;p=thirdparty%2Fsystemd.git homework: avoid runtime formatting of a fixed string Follow-up for fe9bd5ad3670f6a34f9ea9b4e2c16bec6000ce11. I checked that the formatted string has the same dashes as before fe9bd5ad3670f6a34f9ea9b4e2c16bec6000ce11. --- diff --git a/src/home/homework-luks.c b/src/home/homework-luks.c index 2aa05948136..54d91e06995 100644 --- a/src/home/homework-luks.c +++ b/src/home/homework-luks.c @@ -1859,7 +1859,7 @@ static int make_partition_table( if (!t) return log_oom(); - r = fdisk_parttype_set_typestr(t, SD_ID128_TO_UUID_STRING(GPT_USER_HOME)); + r = fdisk_parttype_set_typestr(t, GPT_USER_HOME_STR); if (r < 0) return log_error_errno(r, "Failed to initialize partition type: %m");