Skip to content

Commit 662bd4c

Browse files
authored
[stdio][baremetal] Fix templating for print functions (#131232)
This addresses build errors from #111559.
1 parent e0e80db commit 662bd4c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libc/src/stdio/baremetal/printf.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ LLVM_LIBC_FUNCTION(int, printf, (const char *__restrict format, ...)) {
3838
constexpr size_t BUFF_SIZE = 1024;
3939
char buffer[BUFF_SIZE];
4040

41-
printf_core::WriteBuffer<Mode<WriteMode::FLUSH_TO_STREAM>::value> wb(
41+
printf_core::WriteBuffer<printf_core::WriteMode::FLUSH_TO_STREAM> wb(
4242
buffer, BUFF_SIZE, &raw_write_hook, nullptr);
43-
printf_core::Writer writer(&wb);
43+
printf_core::Writer<printf_core::WriteMode::FLUSH_TO_STREAM> writer(wb);
4444

4545
int retval = printf_core::printf_main(&writer, format, args);
4646

libc/src/stdio/baremetal/vprintf.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ LLVM_LIBC_FUNCTION(int, vprintf,
3636
constexpr size_t BUFF_SIZE = 1024;
3737
char buffer[BUFF_SIZE];
3838

39-
printf_core::WriteBuffer<Mode<WriteMode::FLUSH_TO_STREAM>::value> wb(
39+
printf_core::WriteBuffer<printf_core::WriteMode::FLUSH_TO_STREAM> wb(
4040
buffer, BUFF_SIZE, &raw_write_hook, nullptr);
41-
printf_core::Writer writer(&wb);
41+
printf_core::Writer<printf_core::WriteMode::FLUSH_TO_STREAM> writer(wb);
4242

4343
int retval = printf_core::printf_main(&writer, format, args);
4444

0 commit comments

Comments
 (0)