Kernel: Add LogStream operator<< for Process.

It simply prints "process-name(pid)", nothing fancy, but kinda useful.
This commit is contained in:
Andreas Kling 2019-07-08 18:58:19 +02:00
parent fc127eb769
commit cda5a6eca3
Notes: sideshowbarker 2024-07-19 13:21:57 +09:00

View File

@ -474,3 +474,8 @@ inline int Thread::pid() const
{
return m_process.pid();
}
inline const LogStream& operator<<(const LogStream& stream, const Process& process)
{
return stream << process.name() << '(' << process.pid() << ')';
}