mirror of
https://github.com/RGBCube/serenity
synced 2025-07-19 07:37:34 +00:00
Kernel: Add LogStream operator<< for Process.
It simply prints "process-name(pid)", nothing fancy, but kinda useful.
This commit is contained in:
parent
fc127eb769
commit
cda5a6eca3
1 changed files with 5 additions and 0 deletions
|
@ -474,3 +474,8 @@ inline int Thread::pid() const
|
||||||
{
|
{
|
||||||
return m_process.pid();
|
return m_process.pid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline const LogStream& operator<<(const LogStream& stream, const Process& process)
|
||||||
|
{
|
||||||
|
return stream << process.name() << '(' << process.pid() << ')';
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue