mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 14:43:08 +00:00
utils.h: add panic() macro
Signed-off-by: Sven Peter <sven@svenpeter.dev>
This commit is contained in:
parent
d762391a68
commit
63fad7e3e2
1 changed files with 6 additions and 0 deletions
|
@ -252,4 +252,10 @@ int debug_printf(const char *fmt, ...);
|
|||
void udelay(u32 d);
|
||||
void reboot(void);
|
||||
|
||||
#define panic(fmt, ...) \
|
||||
do { \
|
||||
debug_printf(fmt, ##__VA_ARGS__); \
|
||||
reboot(); \
|
||||
} while (0)
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue