mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03: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
Notes:
sideshowbarker
2024-07-19 13:21:57 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/cda5a6eca38
@ -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() << ')';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user