mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-10 00:00:04 +03:00
Flush standard output before popping assertions
Seeing error messages before we die generally makes assertions easier to debug. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
6692c6f9d3
commit
cc1b64e992
@ -17,7 +17,7 @@
|
||||
|
||||
#define BUILD_BUG_ON(cond) ((void)sizeof(char[1 - 2*!!(cond)]))
|
||||
|
||||
#define BUG() do { assert(0); unreachable(); } while (0)
|
||||
#define BUG() do { fflush(stdout); assert(0); unreachable(); } while (0)
|
||||
#define BUG_ON(cond) assert(!(cond))
|
||||
|
||||
#define WARN(cond, fmt, ...) \
|
||||
|
Loading…
Reference in New Issue
Block a user