mirror of
https://gitflic.ru/project/erthink/libmdbx.git
synced 2025-03-09 14:42:20 +00:00
mdbx: корректировка mdbx_panic()
для вывода переданного сообщения через __assert_failed()
.
This commit is contained in:
parent
1ad133a419
commit
25da1746fb
@ -248,7 +248,7 @@ __cold void mdbx_panic(const char *fmt, ...) {
|
||||
unlikely(num < 1 || !message) ? "<troubles with panic-message preparation>" : message;
|
||||
|
||||
if (globals.logger.ptr)
|
||||
debug_log(MDBX_LOG_FATAL, "panic", 0, "%s", const_message);
|
||||
debug_log(MDBX_LOG_FATAL, "mdbx-panic", 0, "%s", const_message);
|
||||
|
||||
while (1) {
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
@ -262,7 +262,7 @@ __cold void mdbx_panic(const char *fmt, ...) {
|
||||
#endif
|
||||
FatalExit(ERROR_UNHANDLED_ERROR);
|
||||
#else
|
||||
__assert_fail(const_message, "mdbx", 0, "panic");
|
||||
__assert_fail(const_message, "mdbx-panic", 0, const_message);
|
||||
abort();
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user