diff mbox series

[v1] efi: Don't use knowledge about efi_guid_t internals

Message ID 20201015115028.81857-1-andriy.shevchenko@linux.intel.com (mailing list archive)
State New, archived
Headers show
Series [v1] efi: Don't use knowledge about efi_guid_t internals | expand

Commit Message

Andy Shevchenko Oct. 15, 2020, 11:50 a.m. UTC
When print GUIDs supply pointer to the efi_guid_t (guid_t) type rather
its internal members.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 security/integrity/platform_certs/efi_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andy Shevchenko Jan. 2, 2021, 9:36 p.m. UTC | #1
On Thu, Oct 15, 2020 at 02:50:28PM +0300, Andy Shevchenko wrote:
> When print GUIDs supply pointer to the efi_guid_t (guid_t) type rather
> its internal members.

Any comment on this?

> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  security/integrity/platform_certs/efi_parser.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/security/integrity/platform_certs/efi_parser.c b/security/integrity/platform_certs/efi_parser.c
> index 18f01f36fe6a..d98260f8402a 100644
> --- a/security/integrity/platform_certs/efi_parser.c
> +++ b/security/integrity/platform_certs/efi_parser.c
> @@ -55,7 +55,7 @@ int __init parse_efi_signature_list(
>  		memcpy(&list, data, sizeof(list));
>  		pr_devel("LIST[%04x] guid=%pUl ls=%x hs=%x ss=%x\n",
>  			 offs,
> -			 list.signature_type.b, list.signature_list_size,
> +			 &list.signature_type, list.signature_list_size,
>  			 list.signature_header_size, list.signature_size);
>  
>  		lsize = list.signature_list_size;
> -- 
> 2.28.0
>
diff mbox series

Patch

diff --git a/security/integrity/platform_certs/efi_parser.c b/security/integrity/platform_certs/efi_parser.c
index 18f01f36fe6a..d98260f8402a 100644
--- a/security/integrity/platform_certs/efi_parser.c
+++ b/security/integrity/platform_certs/efi_parser.c
@@ -55,7 +55,7 @@  int __init parse_efi_signature_list(
 		memcpy(&list, data, sizeof(list));
 		pr_devel("LIST[%04x] guid=%pUl ls=%x hs=%x ss=%x\n",
 			 offs,
-			 list.signature_type.b, list.signature_list_size,
+			 &list.signature_type, list.signature_list_size,
 			 list.signature_header_size, list.signature_size);
 
 		lsize = list.signature_list_size;