[PATCH] Use SIMPLE_TEXT_OUTPUT_INTERFACE instead of PROTOCOL

7 views
Skip to first unread message

Andreas J. Reichel

unread,
Apr 2, 2019, 9:29:58 AM4/2/19
to efibootg...@googlegroups.com, Andreas Reichel
From: Andreas Reichel <andreas.r...@siemens.com>

The interface is defined in gnu-efi 3.0.4 whereas the protocol
is not.

This way it works with both 3.0.4 and the newer version.

Signed-off-by: Andreas Reichel <andreas.r...@siemens.com>
---
utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils.c b/utils.c
index d74cc7c..7079852 100644
--- a/utils.c
+++ b/utils.c
@@ -322,6 +322,6 @@ CHAR16 *GetBootMediumPath(CHAR16 *input)

VOID Color(EFI_SYSTEM_TABLE *system_table, char fgcolor, char bgcolor)
{
- EFI_SIMPLE_TEXT_OUT_PROTOCOL *con = system_table->ConOut;
+ SIMPLE_TEXT_OUTPUT_INTERFACE *con = system_table->ConOut;
(VOID)uefi_call_wrapper(con->SetAttribute, 3, con, (bgcolor << 8) | fgcolor);
}
--
2.21.0

Jan Kiszka

unread,
Apr 2, 2019, 12:12:59 PM4/2/19
to [ext] Andreas J. Reichel, efibootg...@googlegroups.com
Thanks, applied to next.

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
Reply all
Reply to author
Forward
0 new messages