Panic information
The kernel panic information is in kernel/include/kernel/panic.h and kernel/kernel/panic.c. Here's the function syntax:
void panic(const char *panicmessage)
Here's an example panic() execution and output:
#include <kernel/panic.h>
panic("Potato");
Kernel panic: Not syncing, Potato
Command: <whatever command caused it>
Registers: <lots of gibberish>
--[ End kernel panic: Not syncing, Potato ]--
Easy peasy!