1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:28:11 +00:00

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

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() << ')';
}