Skip to content

Commit 34ce465

Browse files
authored
Merge pull request #2359 from mazunki/fix-wrong-printf
fix erroneous %s prefixes
2 parents 62337fc + 364ed02 commit 34ce465

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)