aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-02-28 18:17:28 +0100
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-03-07 17:37:12 +0100
commit997b57fc1a375811af84bc1d18a5e59957b2a937 (patch)
tree1e00a57b1c07161768fa37929959e9d21707880a
parente4dba4ba6f61e8128be0b4200ca2d8cebf62180b (diff)
downloadu-boot-997b57fc1a375811af84bc1d18a5e59957b2a937.zip
u-boot-997b57fc1a375811af84bc1d18a5e59957b2a937.tar.gz
u-boot-997b57fc1a375811af84bc1d18a5e59957b2a937.tar.bz2
efi_loader: console size of vidconsole
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>
-rw-r--r--lib/efi_loader/efi_console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c
index edcfce7..c400355 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");