mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2026-08-27 19:04:02 -05:00
fix: Log fatal force flush
Summary: Test Plan:
This commit is contained in:
@@ -192,6 +192,7 @@ include src/main/popnhook1/Module.mk
|
||||
include src/main/popnio/Module.mk
|
||||
include src/main/procmon/Module.mk
|
||||
include src/main/pcbidgen/Module.mk
|
||||
include src/main/sdk-hook/Module.mk
|
||||
include src/main/sdvxhook/Module.mk
|
||||
include src/main/sdvxhook2-cn/Module.mk
|
||||
include src/main/sdvxhook2/Module.mk
|
||||
@@ -280,6 +281,7 @@ $(zipdir)/iidx-09-to-12.zip: \
|
||||
dist/iidx/iidxhook-10.conf \
|
||||
dist/iidx/iidxhook-11.conf \
|
||||
dist/iidx/iidxhook-12.conf \
|
||||
dist/iidx/inject-09.xml \
|
||||
dist/iidx/vefx.txt \
|
||||
build/bin/indep-32/iidx-irbeat-patch.exe \
|
||||
dist/iidx/iidx-irbeat-patch-09.bat \
|
||||
|
||||
@@ -86,9 +86,18 @@
|
||||
* @param ... Additional arguments according to the specified arguments in the
|
||||
* printf format string
|
||||
*/
|
||||
// Additional empty log statement to trigger flush on some sinks.
|
||||
// Otherwise, the last message might get lost
|
||||
#define log_fatal(...) \
|
||||
do { \
|
||||
_bt_core_log_api.v1.fatal( \
|
||||
LOG_MODULE, \
|
||||
"%s:%d: function `%s'", \
|
||||
__FILE__, \
|
||||
__LINE__, \
|
||||
__FUNCTION__); \
|
||||
_bt_core_log_api.v1.fatal(LOG_MODULE, __VA_ARGS__); \
|
||||
_bt_core_log_api.v1.fatal(LOG_MODULE, ""); \
|
||||
abort(); \
|
||||
} while (0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user