summaryrefslogtreecommitdiff
path: root/Kernel/kmalloc.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-26 22:32:35 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-26 22:33:15 +0200
commitc928b062180b10a9908325727e18483e029edada (patch)
tree38d9c7cafc21ed9d438cc137bbb613f38cb1415d /Kernel/kmalloc.cpp
parent81627cf7d539b3aa15773967f6c3d7c6e7ca86be (diff)
downloadserenity-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.cpp4
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