panic() reports the error message
#include "assert.h"
void _panic(const char* msg, const char* file, int line) {
- printf("Kernel assertion in %s line %d", file, line);
+ printf("Kernel assertion in %s line %d: %s", file, line, msg);
//enter infinite loop
asm("cli");
do {} while (1);
