]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: update the error message of TCG protocol installation
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 19 Jan 2023 14:29:15 +0000 (16:29 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 20 Jan 2023 15:38:52 +0000 (16:38 +0100)
"Unable to find TPMv2 device" doesn't explain much with regards to the
error origin. Update it to match what we have in the RNG protocol
installation.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_tcg2.c

index a525ebf75b58c480125b40db8b07ff0735eb09ff..918e9a268641bf9b080670324818c12d43e8ba6d 100644 (file)
@@ -2417,7 +2417,7 @@ efi_status_t efi_tcg2_register(void)
 
        ret = platform_get_tpm2_device(&dev);
        if (ret != EFI_SUCCESS) {
-               log_warning("Unable to find TPMv2 device\n");
+               log_warning("Missing TPMv2 device for EFI_TCG_PROTOCOL\n");
                return EFI_SUCCESS;
        }