summaryrefslogtreecommitdiff
path: root/drivers/firmware/efi/efibc.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-07-25 12:30:01 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-07-25 12:30:01 -0700
commita2303849a6b4b7ba59667091e00d6bb194071d9a (patch)
treef7b357df247abcf4d72b1380e70615a7c7ca3e58 /drivers/firmware/efi/efibc.c
parentdf00ccca7201dcb78847de68538486dbcfa5deba (diff)
parent7fb2b43c3252c9177825a0a49138cd16144b6b5e (diff)
downloadlinux-a2303849a6b4b7ba59667091e00d6bb194071d9a.tar.gz
linux-a2303849a6b4b7ba59667091e00d6bb194071d9a.tar.bz2
linux-a2303849a6b4b7ba59667091e00d6bb194071d9a.zip
Merge branch 'efi-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull EFI updates from Ingo Molnar: "The biggest change in this cycle were SGI/UV related changes that clean up and fix UV boot quirks and problems. There's also various smaller cleanups and refinements" * 'efi-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: efi: Reorganize the GUID table to make it easier to read x86/efi: Remove the unused efi_get_time() function x86/efi: Update efi_thunk() to use the the arch_efi_call_virt*() macros x86/uv: Update uv_bios_call() to use efi_call_virt_pointer() efi: Convert efi_call_virt() to efi_call_virt_pointer() x86/efi: Remove unused variable 'efi' efi: Document #define FOO_PROTOCOL_GUID layout efibc: Report more information in the error messages
Diffstat (limited to 'drivers/firmware/efi/efibc.c')
-rw-r--r--drivers/firmware/efi/efibc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/firmware/efi/efibc.c b/drivers/firmware/efi/efibc.c
index 8dd0c7085e59..503bbe2a9d49 100644
--- a/drivers/firmware/efi/efibc.c
+++ b/drivers/firmware/efi/efibc.c
@@ -37,13 +37,13 @@ static int efibc_set_variable(const char *name, const char *value)
size_t size = (strlen(value) + 1) * sizeof(efi_char16_t);
if (size > sizeof(entry->var.Data)) {
- pr_err("value is too large");
+ pr_err("value is too large (%zu bytes) for '%s' EFI variable\n", size, name);
return -EINVAL;
}
entry = kmalloc(sizeof(*entry), GFP_KERNEL);
if (!entry) {
- pr_err("failed to allocate efivar entry");
+ pr_err("failed to allocate efivar entry for '%s' EFI variable\n", name);
return -ENOMEM;
}