Commit beeb107c authored by Johan Hovold's avatar Johan Hovold Committed by Ard Biesheuvel

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: default avatarJohan Hovold <johan+linaro@kernel.org>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent fa7bee86
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
* Copyright (C) 2004 Intel Corporation <matthew.e.tolentino@intel.com> * Copyright (C) 2004 Intel Corporation <matthew.e.tolentino@intel.com>
*/ */
#define pr_fmt(fmt) "efivars: " fmt
#include <linux/types.h> #include <linux/types.h>
#include <linux/sizes.h> #include <linux/sizes.h>
#include <linux/errno.h> #include <linux/errno.h>
...@@ -90,7 +92,7 @@ int efivars_unregister(struct efivars *efivars) ...@@ -90,7 +92,7 @@ int efivars_unregister(struct efivars *efivars)
return -EINTR; return -EINTR;
if (!__efivars) { if (!__efivars) {
printk(KERN_ERR "efivars not registered\n"); pr_err("efivars not registered\n");
rv = -EINVAL; rv = -EINVAL;
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment