mirror of
https://xff.cz/git/u-boot/
synced 2025-09-18 17:12:08 +02:00
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>
This commit is contained in:
@@ -223,7 +223,7 @@ static int query_console_serial(int *rows, int *cols)
|
|||||||
static void query_console_size(void)
|
static void query_console_size(void)
|
||||||
{
|
{
|
||||||
const char *stdout_name = env_get("stdout");
|
const char *stdout_name = env_get("stdout");
|
||||||
int rows, cols;
|
int rows = 25, cols = 80;
|
||||||
|
|
||||||
if (stdout_name && !strcmp(stdout_name, "vidconsole") &&
|
if (stdout_name && !strcmp(stdout_name, "vidconsole") &&
|
||||||
IS_ENABLED(CONFIG_DM_VIDEO)) {
|
IS_ENABLED(CONFIG_DM_VIDEO)) {
|
||||||
|
Reference in New Issue
Block a user