Repairing PANIC macro, now handles VA_ARGS properly
This commit is contained in:
parent
bb38272597
commit
dac4f9de43
2 changed files with 1 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef KERNEL_PANIC_H
|
||||
#define KERNEL_PANIC_H
|
||||
|
||||
#define PANIC(fmt, ...) __panic("[%s:%d %s] \n" fmt, __FILE__, __LINE__, __func__)
|
||||
#define PANIC(fmt, ...) __panic("[Panic @ %s:%d %s] " fmt, __FILE__, __LINE__, __func__, ##__VA_ARGS__)
|
||||
|
||||
void __panic(const char *restrict fmt, ...);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue