hv: panic will print function name and line number
@@ -103,7 +103,8 @@ static inline void print_logmsg_buffer(__unused uint32_t cpu_id)
} while (0)
#define panic(...) \
- do { pr_fatal("Instruction Decode PANIC: " __VA_ARGS__); \
+ do { pr_fatal("PANIC: %s line: %d\n", __func__, __LINE__); \
+ pr_fatal(__VA_ARGS__); \
while (1) { asm volatile ("pause" ::: "memory"); }; } while (0)
#endif /* LOGMSG_H */
