提交 2630ff01 编写于 作者: F Far

fix: make the macro BUG() in FreeBSD same as linux.

In FreeBSD, BUG() only print the error message without print the registers and stack trace and kill the process.
So there should be a error panic

Close #I3NHA8
上级 56e24ff6
......@@ -139,7 +139,7 @@ extern "C" {
#endif
#define BUG() do { \
diag_printf("BUG() at %s %d\n", __FUNCTION__, __LINE__); \
panic("BUG() at %s %d\n", __FUNCTION__, __LINE__); \
} while (0)
#define BUG_ON(condition) do { \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册