This commit is contained in:
Eggert Jung
2025-05-10 19:42:48 +02:00
parent 383561a4f6
commit 7214ce8e53
8 changed files with 220 additions and 5 deletions

View File

@@ -7,7 +7,7 @@
(void)func;
(void)file;
(void)line;
DBG << "Assertion failed: " << exp << "\nin function: " << func << "\nfrom file: \"" << file << "\" in line " << line << flush;
DBG << "Assertion failed: " << exp << "\nin function: " << func << "\nfrom file: \"" << file << "\" in line " << dec << line << flush;
// TODO: Print error message (in debug window)
// TODO: Then stop the current core permanently
// Use appropriate method from class Core to do so.

View File

@@ -17,7 +17,7 @@
#define kernelpanic(MSG) \
do { \
DBG << "PANIC: '" << (MSG) << "' in " << __func__ << " @ " << __FILE__ \
<< ":" << __LINE__ << ") - CPU stopped." << endl; \
<< ":" << dec << __LINE__ << ") - CPU stopped." << endl; \
Core::die(); \
} while (0)