]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - include/linux/bug.h
New upstream release
[bcachefs-tools-debian] / include / linux / bug.h
index 77260f37cacd70d62899ddf08bc5bae2a8b8cc8f..1a10f7e66144cb28db87a10f17df9dd7ec1ffa12 100644 (file)
@@ -2,6 +2,7 @@
 #define __TOOLS_LINUX_BUG_H
 
 #include <assert.h>
+#include <stdio.h>
 #include <linux/compiler.h>
 
 #ifdef CONFIG_VALGRIND
@@ -17,7 +18,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, ...)                                           \