/* @native: pointer to pointer to U-Boot variable name @variable_name: UEFI variable name @vendor: vendor GUID Return: status code  */
static efi_status_t efi_to_native(char **native, const u16 *variable_name, const efi_guid_t *vendor)
/* @native: pointer to pointer to U-Boot variable name @variable_name: UEFI variable name @vendor: vendor GUID Return: status code  */
static efi_status_t efi_to_native(char **native, const u16 *variable_name, const efi_guid_t *vendor)
{
	size_t len;
	char *pos;
	len = PREFIX_LEN + utf16_utf8_strlen(variable_name) + 1;
	*native = malloc(len);
	if (!*native)
		return EFI_OUT_OF_RESOURCES;
	pos = *native;
	pos += sprintf(pos, "efi_%pUl_", vendor);
	utf16_utf8_strcpy(&pos, variable_name);
	return EFI_SUCCESS;
}