Skip to content

Commit e025ebc

Browse files
committed
Fix pointer formatting in crash handler output.
Do not use 0x%p to output thd address, use %p
1 parent aaff3d6 commit e025ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/signal_handler.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ extern "C" sig_handler handle_fatal_signal(int sig)
143143

144144
if (opt_stack_trace)
145145
{
146-
my_safe_printf_stderr("Thread pointer: 0x%p\n", thd);
146+
my_safe_printf_stderr("Thread pointer: %p\n", thd);
147147
my_safe_printf_stderr("%s",
148148
"Attempting backtrace. You can use the following "
149149
"information to find out\n"

0 commit comments

Comments
 (0)