diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-26 22:32:35 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-26 22:33:15 +0200 |
commit | c928b062180b10a9908325727e18483e029edada (patch) | |
tree | 38d9c7cafc21ed9d438cc137bbb613f38cb1415d /Kernel/kmalloc.cpp | |
parent | 81627cf7d539b3aa15773967f6c3d7c6e7ca86be (diff) | |
download | serenity-c928b062180b10a9908325727e18483e029edada.zip |
Add a very hackish /proc/PID/stack.
It walks the stack and identifies anything that looks like a kernel symbol.
This could be a lot more sophisticated.
Diffstat (limited to 'Kernel/kmalloc.cpp')
-rw-r--r-- | Kernel/kmalloc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/kmalloc.cpp b/Kernel/kmalloc.cpp index 693c29e98a..082307ac3b 100644 --- a/Kernel/kmalloc.cpp +++ b/Kernel/kmalloc.cpp @@ -107,10 +107,10 @@ kmalloc( DWORD size ) } } - kprintf( "kmalloc(): PANIC! Out of memory (no suitable block)" ); + kprintf("kmalloc(): PANIC! Out of memory (no suitable block for size %u)\n", size); HANG; - return 0L; + return nullptr; } PUBLIC void |