Skip to content

Commit 6636d56

Browse files
committed
update early boot information to use modern format-specifier
since we're using std::format_to_n, it's no longer valid to use %s here, which caused erroneous output during boot phase
1 parent e3f6160 commit 6636d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kernel/multiboot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
template<class... Args>
2727
static inline void _kfmt(fmt::string_view prefix, fmt::format_string<Args...> fmtstr, Args&&... args) {
2828
fmt::basic_memory_buffer<char, kernel::kprintf_max_size> buf;
29-
fmt::format_to_n(std::back_inserter(buf), buf.capacity(), "%s", prefix);
29+
fmt::format_to_n(std::back_inserter(buf), buf.capacity(), "{}", prefix);
3030
fmt::format_to_n(std::back_inserter(buf), buf.capacity() - buf.size(), fmtstr, std::forward<Args>(args)...);
3131

3232
kprintf("%.*s", (int)buf.size(), buf.data());

0 commit comments

Comments
 (0)