diff mbox series

[1/1] efi_loader: console size of vidconsole

Message ID 20210228172236.1200-1-xypron.glpk@gmx.de
State Accepted, archived
Commit 997b57fc1a375811af84bc1d18a5e59957b2a937
Delegated to: Heinrich Schuchardt
Headers show
Series [1/1] efi_loader: console size of vidconsole | expand

Commit Message

Heinrich Schuchardt Feb. 28, 2021, 5:22 p.m. UTC
If stdout is 'vidconsole' we correctly set the console size.
If stdout is 'vidconsole,serial' the video console is ignored.

We should always evaluate the size of vidconsole if it is the primary
console.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 lib/efi_loader/efi_console.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.30.1
diff mbox series

Patch

diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c
index edcfce7bec..c4003554c2 100644
--- a/lib/efi_loader/efi_console.c
+++ b/lib/efi_loader/efi_console.c
@@ -311,7 +311,7 @@  static void query_console_size(void)
 	const char *stdout_name = env_get("stdout");
 	int rows = 25, cols = 80;

-	if (stdout_name && !strcmp(stdout_name, "vidconsole") &&
+	if (stdout_name && !strncmp(stdout_name, "vidconsole", 10) &&
 	    IS_ENABLED(CONFIG_DM_VIDEO)) {
 		struct stdio_dev *stdout_dev =
 			stdio_get_by_name("vidconsole");