We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62337fc commit 364ed02Copy full SHA for 364ed02
1 file changed
src/kernel/multiboot.cpp
@@ -26,7 +26,7 @@
26
template<class... Args>
27
static inline void _kfmt(fmt::string_view prefix, fmt::format_string<Args...> fmtstr, Args&&... args) {
28
fmt::basic_memory_buffer<char, kernel::kprintf_max_size> buf;
29
- fmt::format_to_n(std::back_inserter(buf), buf.capacity(), "%s", prefix);
+ fmt::format_to_n(std::back_inserter(buf), buf.capacity(), "{}", prefix);
30
fmt::format_to_n(std::back_inserter(buf), buf.capacity() - buf.size(), fmtstr, std::forward<Args>(args)...);
31
32
kprintf("%.*s", (int)buf.size(), buf.data());
0 commit comments