mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02:00
efi: make efi_guid_to_str() take a const GUID pointer
efi_guid_to_str() only formats the GUID through the byte array passed to the UUID printf formatter. It does not modify the GUID contents. Make the input pointer const so callers can stringify GUIDs from const data without a cast. Signed-off-by: Vincent Mailhol <mailhol@kernel.org> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
parent
4b2c033b5b
commit
01787ed2fd
|
|
@ -705,7 +705,7 @@ efi_guidcmp (efi_guid_t left, efi_guid_t right)
|
|||
}
|
||||
|
||||
static inline char *
|
||||
efi_guid_to_str(efi_guid_t *guid, char *out)
|
||||
efi_guid_to_str(const efi_guid_t *guid, char *out)
|
||||
{
|
||||
sprintf(out, "%pUl", guid->b);
|
||||
return out;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user