mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:18:11 +00:00
Kernel: Replace "current" with Thread::current and Process::current
Suggested by Sergey. The currently running Thread and Process are now Thread::current and Process::current respectively. :^)
This commit is contained in:
parent
4f4af24b9d
commit
48f7c28a5c
37 changed files with 257 additions and 252 deletions
|
@ -115,8 +115,8 @@ DebugLogStream dbg()
|
|||
stream << "\033[33;1m" << process_name_buffer << '(' << getpid() << ")\033[0m: ";
|
||||
#endif
|
||||
#if defined(__serenity__) && defined(KERNEL) && !defined(BOOTSTRAPPER)
|
||||
if (Kernel::current)
|
||||
stream << "\033[34;1m[" << *Kernel::current << "]\033[0m: ";
|
||||
if (Kernel::Thread::current)
|
||||
stream << "\033[34;1m[" << *Kernel::Thread::current << "]\033[0m: ";
|
||||
else
|
||||
stream << "\033[36;1m[Kernel]\033[0m: ";
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue