summaryrefslogtreecommitdiffstats
path: root/src/boot/efi/vmm.c
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2022-06-05 15:08:07 +0200
committerJan Janssen <medhefgo@web.de>2023-01-18 17:47:57 +0100
commit2f3c3b0bee5534f2338439f04b0aa517479f8b76 (patch)
tree14186d285499c56655166d109cd37b22400e9932 /src/boot/efi/vmm.c
parenttree-wide: Use __func__ in asserts (diff)
downloadsystemd-2f3c3b0bee5534f2338439f04b0aa517479f8b76.tar.xz
systemd-2f3c3b0bee5534f2338439f04b0aa517479f8b76.zip
boot: Drop use of xpool_print/SPrint
Diffstat (limited to '')
-rw-r--r--src/boot/efi/vmm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/boot/efi/vmm.c b/src/boot/efi/vmm.c
index 3dfa92b58d..b24d556700 100644
--- a/src/boot/efi/vmm.c
+++ b/src/boot/efi/vmm.c
@@ -97,9 +97,8 @@ EFI_STATUS vmm_open(EFI_HANDLE *ret_vmm_dev, EFI_FILE **ret_vmm_dir) {
for (size_t order = 0;; order++) {
_cleanup_free_ EFI_DEVICE_PATH *dp = NULL;
- char16_t order_str[STRLEN("VMMBootOrder") + 4 + 1];
- SPrint(order_str, sizeof(order_str), u"VMMBootOrder%04x", order);
+ _cleanup_free_ char16_t *order_str = xasprintf("VMMBootOrder%04zx", order);
dp_err = efivar_get_raw(&(EFI_GUID)VMM_BOOT_ORDER_GUID, order_str, (char**)&dp, NULL);
for (size_t i = 0; i < n_handles; i++) {