From 364ed025d50b3be80f9d7e1fbeb99aafbe102ed2 Mon Sep 17 00:00:00 2001 From: Mazunki Hoksaas Date: Thu, 13 Nov 2025 00:44:55 +0100 Subject: [PATCH] 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 --- src/kernel/multiboot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/multiboot.cpp b/src/kernel/multiboot.cpp index 74573fdcc..295982016 100644 --- a/src/kernel/multiboot.cpp +++ b/src/kernel/multiboot.cpp @@ -26,7 +26,7 @@ template static inline void _kfmt(fmt::string_view prefix, fmt::format_string fmtstr, Args&&... args) { fmt::basic_memory_buffer buf; - fmt::format_to_n(std::back_inserter(buf), buf.capacity(), "%s", prefix); + fmt::format_to_n(std::back_inserter(buf), buf.capacity(), "{}", prefix); fmt::format_to_n(std::back_inserter(buf), buf.capacity() - buf.size(), fmtstr, std::forward(args)...); kprintf("%.*s", (int)buf.size(), buf.data());