From 7faf9e86c35edd8dc1fe320d268ad34b7c80d495 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Tue, 13 Mar 2018 08:54:26 +0100 Subject: [PATCH] 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 --- lib/console.c | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/lib/console.c b/lib/console.c index c4eaf61..3d28daa 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 */