mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
Kernel: Use klog() instead of kprintf()
Also, duplicate data in dbg() and klog() calls were removed. In addition, leakage of virtual address to kernel log is prevented. This is done by replacing kprintf() calls to dbg() calls with the leaked data instead. Also, other kprintf() calls were replaced with klog().
This commit is contained in:
parent
19aa53e1f9
commit
0fc60e41dd
Notes:
sideshowbarker
2024-07-19 08:55:45 +09:00
Author: https://github.com/supercomputer7
Commit: 0fc60e41dd
Pull-request: https://github.com/SerenityOS/serenity/pull/1322
53 changed files with 397 additions and 573 deletions
|
@ -30,17 +30,14 @@ extern "C" const char module_name[] = "TestModule";
|
|||
|
||||
extern "C" void module_init()
|
||||
{
|
||||
kprintf("TestModule has booted!\n");
|
||||
klog() << "TestModule has booted!";
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
kprintf("i is now %d\n", i);
|
||||
klog() << "i is now " << i;
|
||||
}
|
||||
|
||||
kprintf("current pid: %d\n", Process::current->sys$getpid());
|
||||
kprintf("current process name: %s\n", Process::current->name().characters());
|
||||
}
|
||||
|
||||
extern "C" void module_fini()
|
||||
{
|
||||
kprintf("TestModule is being removed!\n");
|
||||
klog() << "TestModule is being removed!";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue