Kernel: Don't print "./" prefix with debug functions

This commit is contained in:
Bananymous 2026-02-27 19:10:51 +02:00
parent 9ddf19f605
commit 54acb05131
1 changed files with 2 additions and 0 deletions

View File

@ -335,6 +335,8 @@ namespace Debug
void print_prefix(const char* file, int line)
{
if (file[0] == '.' && file[1] == '/')
file += 2;
auto ms_since_boot = Kernel::SystemTimer::is_initialized() ? Kernel::SystemTimer::get().ms_since_boot() : 0;
BAN::Formatter::print(Debug::putchar, "[{5}.{3}] {}:{}: ", ms_since_boot / 1000, ms_since_boot % 1000, file, line);
}