projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d29e782
)
efi_loader: Fix warning in raw/cols query
author
Alexander Graf
<agraf@suse.de>
Sun, 3 Jun 2018 13:51:17 +0000
(15:51 +0200)
committer
Alexander Graf
<agraf@suse.de>
Sun, 3 Jun 2018 13:51:19 +0000
(15:51 +0200)
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>
lib/efi_loader/efi_console.c
patch
|
blob
|
history
diff --git
a/lib/efi_loader/efi_console.c
b/lib/efi_loader/efi_console.c
index 0bfc24dbd98b88d660be8543174f8180d761c8c4..ce66c935ecbf7cff0eb019712c465c4cf2a7d2da 100644
(file)
--- 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)) {