summaryrefslogtreecommitdiff
path: root/drivers/firmware/efi/vars.c
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2023-01-19 19:42:52 +0300
committerArd Biesheuvel <ardb@kernel.org>2023-01-23 14:32:21 +0300
commitbeeb107c5b354f4eaea17a9bca6ca8762f60effc (patch)
tree98f3edf4056863c5a519abe3403cefa75cd9e270 /drivers/firmware/efi/vars.c
parentfa7bee867db1913560435a7486d17d95500a62dc (diff)
downloadlinux-beeb107c5b354f4eaea17a9bca6ca8762f60effc.tar.xz
efi: efivars: add efivars printk prefix
Add an 'efivars: ' printk prefix to make the log entries stand out more, for example: efivars: Registered efivars operations While at it, change the sole remaining direct printk() call to pr_err(). Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/vars.c')
-rw-r--r--drivers/firmware/efi/vars.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/firmware/efi/vars.c b/drivers/firmware/efi/vars.c
index aa5ba38f81ff..f34e7741e0c3 100644
--- a/drivers/firmware/efi/vars.c
+++ b/drivers/firmware/efi/vars.c
@@ -6,6 +6,8 @@
* Copyright (C) 2004 Intel Corporation <matthew.e.tolentino@intel.com>
*/
+#define pr_fmt(fmt) "efivars: " fmt
+
#include <linux/types.h>
#include <linux/sizes.h>
#include <linux/errno.h>
@@ -90,7 +92,7 @@ int efivars_unregister(struct efivars *efivars)
return -EINTR;
if (!__efivars) {
- printk(KERN_ERR "efivars not registered\n");
+ pr_err("efivars not registered\n");
rv = -EINVAL;
goto out;
}