diff options
author | dzwdz | 2021-08-03 17:38:12 +0200 |
---|---|---|
committer | dzwdz | 2021-08-03 17:38:12 +0200 |
commit | b2e43dd96f385e275c08ad531cd1c6bb65e2011f (patch) | |
tree | 5bff925556326a6745dc5eb2c76ad11e3223d05b /src/kernel/panic.h | |
parent | 173823ae1c180d40916dc3ca25e7a2bf2be3b1cd (diff) |
put the NUM2STR macro in util.h
i'll use it outside of panic.h
Diffstat (limited to 'src/kernel/panic.h')
-rw-r--r-- | src/kernel/panic.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/kernel/panic.h b/src/kernel/panic.h index ea2cef5..3f48c22 100644 --- a/src/kernel/panic.h +++ b/src/kernel/panic.h @@ -1,13 +1,10 @@ #pragma once #include <kernel/arch/generic.h> - -// dumb c shit -#define panic_tostr2(x) #x -#define panic_tostr(x) panic_tostr2(x) +#include <kernel/util.h> #define panic() do { \ log_const(" PANIC! at the "); \ log_const(__func__); \ - log_const(" (" __FILE__ ":" panic_tostr(__LINE__) ") "); \ + log_const(" (" __FILE__ ":" NUM2STR(__LINE__) ") "); \ halt_cpu(); \ } while (0) |