diff options
author | Jan Janssen <medhefgo@web.de> | 2022-06-05 15:08:07 +0200 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2023-01-18 17:47:57 +0100 |
commit | 2f3c3b0bee5534f2338439f04b0aa517479f8b76 (patch) | |
tree | 14186d285499c56655166d109cd37b22400e9932 /src/boot/efi/vmm.c | |
parent | tree-wide: Use __func__ in asserts (diff) | |
download | systemd-2f3c3b0bee5534f2338439f04b0aa517479f8b76.tar.xz systemd-2f3c3b0bee5534f2338439f04b0aa517479f8b76.zip |
boot: Drop use of xpool_print/SPrint
Diffstat (limited to '')
-rw-r--r-- | src/boot/efi/vmm.c | 3 |
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++) { |