File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
libc/src/__support/OSUtil/uefi Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 10
10
11
11
#include " src/__support/CPP/string_view.h"
12
12
#include " src/__support/macros/config.h"
13
+ #include < Uefi.h>
13
14
14
15
namespace LIBC_NAMESPACE_DECL {
15
16
@@ -19,8 +20,16 @@ ssize_t read_from_stdin(char *buf, size_t size) {
19
20
return 0 ;
20
21
}
21
22
22
- void write_to_stdout (cpp::string_view msg) { (void )msg; }
23
+ void write_to_stdout (cpp::string_view msg) {
24
+ // TODO: use mbstowcs once implemented
25
+ efi_system_table->ConOut ->OutputString (
26
+ efi_system_table->ConOut , reinterpret_cast <const char16_t *>(msg.data ()));
27
+ }
23
28
24
- void write_to_stderr (cpp::string_view msg) { (void )msg; }
29
+ void write_to_stderr (cpp::string_view msg) {
30
+ // TODO: use mbstowcs once implemented
31
+ efi_system_table->StdErr ->OutputString (
32
+ efi_system_table->StdErr , reinterpret_cast <const char16_t *>(msg.data ()));
33
+ }
25
34
26
35
} // namespace LIBC_NAMESPACE_DECL
You can’t perform that action at this time.
0 commit comments