Kernel: Print thread id when writing to /dev/debug
This commit is contained in:
parent
54acb05131
commit
d16f07a547
|
|
@ -21,10 +21,11 @@ namespace Kernel
|
||||||
{
|
{
|
||||||
auto ms_since_boot = SystemTimer::get().ms_since_boot();
|
auto ms_since_boot = SystemTimer::get().ms_since_boot();
|
||||||
SpinLockGuard _(Debug::s_debug_lock);
|
SpinLockGuard _(Debug::s_debug_lock);
|
||||||
BAN::Formatter::print(Debug::putchar, "[{5}.{3}] {} {}: ",
|
BAN::Formatter::print(Debug::putchar, "[{5}.{3}] {}:{} {}: ",
|
||||||
ms_since_boot / 1000,
|
ms_since_boot / 1000,
|
||||||
ms_since_boot % 1000,
|
ms_since_boot % 1000,
|
||||||
Kernel::Process::current().pid(),
|
Kernel::Process::current().pid(),
|
||||||
|
Thread::current().tid(),
|
||||||
Kernel::Process::current().name()
|
Kernel::Process::current().name()
|
||||||
);
|
);
|
||||||
for (size_t i = 0; i < buffer.size(); i++)
|
for (size_t i = 0; i < buffer.size(); i++)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue