diff options
author | emaste <emaste@FreeBSD.org> | 2016-01-18 15:37:41 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2016-01-18 15:37:41 +0000 |
commit | 51120efe0753c7fb11ce9dab662dd9542cd41813 (patch) | |
tree | 6cf17a0ea48f0d027a1b51611d64af078e84f8d6 /sys/boot | |
parent | 4c01df89424f24e1d81b9dc7f6b0b2787ab230b2 (diff) | |
download | FreeBSD-src-51120efe0753c7fb11ce9dab662dd9542cd41813.zip FreeBSD-src-51120efe0753c7fb11ce9dab662dd9542cd41813.tar.gz |
MFC r293165: loader.efi: support non-contiguous console modes
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/efi/loader/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/boot/efi/loader/main.c b/sys/boot/efi/loader/main.c index e6e13f1..f334488 100644 --- a/sys/boot/efi/loader/main.c +++ b/sys/boot/efi/loader/main.c @@ -333,10 +333,11 @@ command_mode(int argc, char *argv[]) return (CMD_OK); } - for (i = 0; ; i++) { + printf("Current mode: %d\n", conout->Mode->Mode); + for (i = 0; i <= conout->Mode->MaxMode; i++) { status = conout->QueryMode(conout, i, &cols, &rows); if (EFI_ERROR(status)) - break; + continue; printf("Mode %d: %u columns, %u rows\n", i, (unsigned)cols, (unsigned)rows); } |