Skip to content

Commit

Permalink
Fix pointer formatting in crash handler output.
Browse files Browse the repository at this point in the history
Do not use 0x%p to output thd address, use %p
  • Loading branch information
vaintroub committed Dec 20, 2016
1 parent aaff3d6 commit e025ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/signal_handler.cc
Expand Up @@ -143,7 +143,7 @@ extern "C" sig_handler handle_fatal_signal(int sig)

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",
"Attempting backtrace. You can use the following "
"information to find out\n"
Expand Down

0 comments on commit e025ebc

Please sign in to comment.