]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homework: avoid runtime formatting of a fixed string 22516/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 15 Feb 2022 09:50:43 +0000 (10:50 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 15 Feb 2022 09:50:43 +0000 (10:50 +0100)
Follow-up for fe9bd5ad3670f6a34f9ea9b4e2c16bec6000ce11.
I checked that the formatted string has the same dashes as
before fe9bd5ad3670f6a34f9ea9b4e2c16bec6000ce11.

src/home/homework-luks.c

index 2aa05948136920c5e64e39c581c543b9031ff3d9..54d91e069952c1529406d98aabd327cd6404c021 100644 (file)
@@ -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");