aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2018-06-03 15:51:17 +0200
committerAlexander Graf <agraf@suse.de>2018-06-03 15:51:19 +0200
commit80483b2ab62ca7cd200db445b6920ee96d17df88 (patch)
tree7657a685dc30bd66dcc9b6e844006bb9fa6a11bc /lib
parentd29e7824d782272f29dee68ea0ebb588257aacb4 (diff)
downloadu-boot-80483b2ab62ca7cd200db445b6920ee96d17df88.zip
u-boot-80483b2ab62ca7cd200db445b6920ee96d17df88.tar.gz
u-boot-80483b2ab62ca7cd200db445b6920ee96d17df88.tar.bz2
efi_loader: Fix warning in raw/cols query
The code to determine rows / cols on the screen could potentially run into a case where it doesn't know how big the screen is. In that case, assume 80x25. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib')
-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 0bfc24d..ce66c93 100644
--- a/lib/efi_loader/efi_console.c
+++ b/lib/efi_loader/efi_console.c
@@ -223,7 +223,7 @@ static int query_console_serial(int *rows, int *cols)
static void query_console_size(void)
{
const char *stdout_name = env_get("stdout");
- int rows, cols;
+ int rows = 25, cols = 80;
if (stdout_name && !strcmp(stdout_name, "vidconsole") &&
IS_ENABLED(CONFIG_DM_VIDEO)) {