Skip to content

Commit beeb107

Browse files
jhovoldardbiesheuvel
authored andcommitted
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 <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]>
1 parent fa7bee8 commit beeb107

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/firmware/efi/vars.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* Copyright (C) 2004 Intel Corporation <[email protected]>
77
*/
88

9+
#define pr_fmt(fmt) "efivars: " fmt
10+
911
#include <linux/types.h>
1012
#include <linux/sizes.h>
1113
#include <linux/errno.h>
@@ -90,7 +92,7 @@ int efivars_unregister(struct efivars *efivars)
9092
return -EINTR;
9193

9294
if (!__efivars) {
93-
printk(KERN_ERR "efivars not registered\n");
95+
pr_err("efivars not registered\n");
9496
rv = -EINVAL;
9597
goto out;
9698
}

0 commit comments

Comments
 (0)