summaryrefslogtreecommitdiff
path: root/lib/console.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-03-13 08:54:26 +0100
committerPeter Jones <pjones@redhat.com>2018-03-13 15:40:35 -0400
commit7faf9e86c35edd8dc1fe320d268ad34b7c80d495 (patch)
treee051d99f78a14c501f5076231bb2ee156b51bb45 /lib/console.c
parent1ff4a36a23ac5c17144275ccb3e1e1061750a137 (diff)
downloadefi-boot-shim-7faf9e86c35edd8dc1fe320d268ad34b7c80d495.tar.gz
efi-boot-shim-7faf9e86c35edd8dc1fe320d268ad34b7c80d495.zip
console: Fix indentation
The manual merge of the "console: Do not set EFI console to textmode until something is printed" patch has lead to a bunch of tabs being replaced with 7 spaces. This commit fixes this. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'lib/console.c')
-rw-r--r--lib/console.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/lib/console.c b/lib/console.c
index c4eaf617..3d28daaf 100644
--- a/lib/console.c
+++ b/lib/console.c
@@ -85,36 +85,36 @@ VOID console_fini(VOID)
UINTN
console_print(const CHAR16 *fmt, ...)
{
- va_list args;
- UINTN ret;
+ va_list args;
+ UINTN ret;
- if (!console_text_mode)
- setup_console(1);
+ if (!console_text_mode)
+ setup_console(1);
- va_start(args, fmt);
- ret = VPrint(fmt, args);
- va_end(args);
+ va_start(args, fmt);
+ ret = VPrint(fmt, args);
+ va_end(args);
- return ret;
+ return ret;
}
UINTN
console_print_at(UINTN col, UINTN row, const CHAR16 *fmt, ...)
{
- SIMPLE_TEXT_OUTPUT_INTERFACE *co = ST->ConOut;
- va_list args;
- UINTN ret;
+ SIMPLE_TEXT_OUTPUT_INTERFACE *co = ST->ConOut;
+ va_list args;
+ UINTN ret;
- if (!console_text_mode)
- setup_console(1);
+ if (!console_text_mode)
+ setup_console(1);
- co->SetCursorPosition(co, col, row);
+ co->SetCursorPosition(co, col, row);
- va_start(args, fmt);
- ret = VPrint(fmt, args);
- va_end(args);
+ va_start(args, fmt);
+ ret = VPrint(fmt, args);
+ va_end(args);
- return ret;
+ return ret;
}
@@ -133,7 +133,7 @@ console_print_box_at(CHAR16 *str_arr[], int highlight,
return;
if (!console_text_mode)
- setup_console(1);
+ setup_console(1);
co->QueryMode(co, co->Mode->Mode, &cols, &rows);
@@ -238,7 +238,7 @@ console_print_box(CHAR16 *str_arr[], int highlight)
EFI_INPUT_KEY key;
if (!console_text_mode)
- setup_console(1);
+ setup_console(1);
CopyMem(&SavedConsoleMode, co->Mode, sizeof(SavedConsoleMode));
co->EnableCursor(co, FALSE);
@@ -271,7 +271,7 @@ console_select(CHAR16 *title[], CHAR16* selectors[], unsigned int start)
UINTN cols, rows;
if (!console_text_mode)
- setup_console(1);
+ setup_console(1);
co->QueryMode(co, co->Mode->Mode, &cols, &rows);
@@ -487,7 +487,7 @@ console_reset(void)
SIMPLE_TEXT_OUTPUT_INTERFACE *co = ST->ConOut;
if (!console_text_mode)
- setup_console(1);
+ setup_console(1);
co->Reset(co, TRUE);
/* set mode 0 - required to be 80x25 */