1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Fix pointer formatting in crash handler output.

Do not use 0x%p to output thd address, use %p
This commit is contained in:
Vladislav Vaintroub
2016-12-20 12:45:48 +00:00
parent aaff3d6c35
commit e025ebcdb5

View File

@@ -143,7 +143,7 @@ extern "C" sig_handler handle_fatal_signal(int sig)
if (opt_stack_trace) if (opt_stack_trace)
{ {
my_safe_printf_stderr("Thread pointer: 0x%p\n", thd); my_safe_printf_stderr("Thread pointer: %p\n", thd);
my_safe_printf_stderr("%s", my_safe_printf_stderr("%s",
"Attempting backtrace. You can use the following " "Attempting backtrace. You can use the following "
"information to find out\n" "information to find out\n"