Skip to content

Commit

Permalink
efi: Rename efi_guid_unparse to efi_guid_to_str
Browse files Browse the repository at this point in the history
Call it what it does - "unparse" is plain-misleading.

Signed-off-by: Borislav Petkov <[email protected]>
Signed-off-by: Ricardo Neri <[email protected]>
  • Loading branch information
suryasaimadhu authored and ricardon committed Jan 8, 2015
1 parent 0e4ca02 commit 26e0227
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion block/partitions/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ int efi_partition(struct parsed_partitions *state)
state->parts[i + 1].flags = ADDPART_FLAG_RAID;

info = &state->parts[i + 1].info;
efi_guid_unparse(&ptes[i].unique_partition_guid, info->uuid);
efi_guid_to_str(&ptes[i].unique_partition_guid, info->uuid);

/* Naively convert UTF16-LE to 7 bits. */
label_max = min(ARRAY_SIZE(info->volname) - 1,
Expand Down
4 changes: 2 additions & 2 deletions drivers/firmware/efi/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ static __init int match_config_table(efi_guid_t *guid,
int i;

if (table_types) {
efi_guid_unparse(guid, str);
efi_guid_to_str(guid, str);

for (i = 0; efi_guidcmp(table_types[i].guid, NULL_GUID); i++) {
efi_guid_unparse(&table_types[i].guid, str);
efi_guid_to_str(&table_types[i].guid, str);

if (!efi_guidcmp(*guid, table_types[i].guid)) {
*(table_types[i].ptr) = table;
Expand Down
6 changes: 3 additions & 3 deletions drivers/firmware/efi/efivars.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* fix locking per Peter Chubb's findings
*
* 25 Mar 2002 - Matt Domsch <[email protected]>
* move uuid_unparse() to include/asm-ia64/efi.h:efi_guid_unparse()
* move uuid_unparse() to include/asm-ia64/efi.h:efi_guid_to_str()
*
* 12 Feb 2002 - Matt Domsch <[email protected]>
* use list_for_each_safe when deleting vars.
Expand Down Expand Up @@ -128,7 +128,7 @@ efivar_guid_read(struct efivar_entry *entry, char *buf)
if (!entry || !buf)
return 0;

efi_guid_unparse(&var->VendorGuid, str);
efi_guid_to_str(&var->VendorGuid, str);
str += strlen(str);
str += sprintf(str, "\n");

Expand Down Expand Up @@ -569,7 +569,7 @@ efivar_create_sysfs_entry(struct efivar_entry *new_var)
private variables from another's. */

*(short_name + strlen(short_name)) = '-';
efi_guid_unparse(&new_var->var.VendorGuid,
efi_guid_to_str(&new_var->var.VendorGuid,
short_name + strlen(short_name));

new_var->kobj.kset = efivars_kset;
Expand Down
2 changes: 1 addition & 1 deletion fs/efivarfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static int efivarfs_callback(efi_char16_t *name16, efi_guid_t vendor,

name[len] = '-';

efi_guid_unparse(&entry->var.VendorGuid, name + len + 1);
efi_guid_to_str(&entry->var.VendorGuid, name + len + 1);

name[len + EFI_VARIABLE_GUID_LEN+1] = '\0';

Expand Down
2 changes: 1 addition & 1 deletion include/linux/efi.h
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ efi_guidcmp (efi_guid_t left, efi_guid_t right)
}

static inline char *
efi_guid_unparse(efi_guid_t *guid, char *out)
efi_guid_to_str(efi_guid_t *guid, char *out)
{
sprintf(out, "%pUl", guid->b);
return out;
Expand Down

0 comments on commit 26e0227

Please sign in to comment.