diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-07-02 18:09:55 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-07-02 18:15:35 +0200 |
commit | 31e1edf570dcc8b4bce5adae57fc8965673271bf (patch) | |
tree | 8482dde7e67b4bb6a485f4cb905ef5ea3dca94a8 /src/boot/efi/stub.c | |
parent | efi: rename efivar_(set|get)() → efivar_(set|get)_str16() (diff) | |
download | systemd-31e1edf570dcc8b4bce5adae57fc8965673271bf.tar.xz systemd-31e1edf570dcc8b4bce5adae57fc8965673271bf.zip |
efivars: rename efivar_get_uint_string() → efivar_get_uint64_str16()
Be explicit with the type, and more inline with our other code, that
likes to indicate the string char width in the name.
Also, switch to a fixed size type, since EFI variables should really be
binary exact the same on all archs.
Diffstat (limited to '')
-rw-r--r-- | src/boot/efi/stub.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/boot/efi/stub.c b/src/boot/efi/stub.c index 5a274ef629..57f441c84b 100644 --- a/src/boot/efi/stub.c +++ b/src/boot/efi/stub.c @@ -746,13 +746,13 @@ static void export_pcr_variables( * successfully, and encode in it which PCR was used. */ if (sections_measured > 0) - (void) efivar_set_uint_string(MAKE_GUID_PTR(LOADER), u"StubPcrKernelImage", TPM2_PCR_KERNEL_BOOT, 0); + (void) efivar_set_uint64_str16(MAKE_GUID_PTR(LOADER), u"StubPcrKernelImage", TPM2_PCR_KERNEL_BOOT, 0); if (parameters_measured > 0) - (void) efivar_set_uint_string(MAKE_GUID_PTR(LOADER), u"StubPcrKernelParameters", TPM2_PCR_KERNEL_CONFIG, 0); + (void) efivar_set_uint64_str16(MAKE_GUID_PTR(LOADER), u"StubPcrKernelParameters", TPM2_PCR_KERNEL_CONFIG, 0); if (sysext_measured > 0) - (void) efivar_set_uint_string(MAKE_GUID_PTR(LOADER), u"StubPcrInitRDSysExts", TPM2_PCR_SYSEXTS, 0); + (void) efivar_set_uint64_str16(MAKE_GUID_PTR(LOADER), u"StubPcrInitRDSysExts", TPM2_PCR_SYSEXTS, 0); if (confext_measured > 0) - (void) efivar_set_uint_string(MAKE_GUID_PTR(LOADER), u"StubPcrInitRDConfExts", TPM2_PCR_KERNEL_CONFIG, 0); + (void) efivar_set_uint64_str16(MAKE_GUID_PTR(LOADER), u"StubPcrInitRDConfExts", TPM2_PCR_KERNEL_CONFIG, 0); } static void install_embedded_devicetree( |