Re: [PATCH] efistub: add efi=quiet parameter to selectively silence efistub alone
From: Ard Biesheuvel
Date: Mon Jan 20 2025 - 03:55:12 EST
On Mon, 20 Jan 2025 at 09:53, Hendrik 'T4cC0re' Meyer <linux@xxxxxxx> wrote:
>
> > I'd prefer to just raise the verbosity level of those messages instead.
>
> Agreed. I'll send in a new patch setting the verbosity of those messages one
> above the default.
>
Actually, let's do it the other way around. Does the below work for you?
--- a/drivers/firmware/efi/libstub/printk.c
+++ b/drivers/firmware/efi/libstub/printk.c
@@ -5,13 +5,13 @@
#include <linux/ctype.h>
#include <linux/efi.h>
#include <linux/kernel.h>
-#include <linux/printk.h> /* For CONSOLE_LOGLEVEL_* */
+#include <linux/kern_levels.h>
#include <asm/efi.h>
#include <asm/setup.h>
#include "efistub.h"
-int efi_loglevel = CONSOLE_LOGLEVEL_DEFAULT;
+int efi_loglevel = LOGLEVEL_NOTICE;
/**
* efi_char16_puts() - Write a UCS-2 encoded string to the console