server: Improve formatting in mach init_tracing_mechanism().

This commit is contained in:
Marc-Aurel Zent 2024-01-17 19:04:34 +01:00 committed by Alexandre Julliard
parent dee10199cc
commit 1eb8f41e54
Notes: Alexandre Julliard 2024-02-14 23:18:18 +01:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/wine/-/merge_requests/4862

View file

@ -100,18 +100,18 @@ void init_tracing_mechanism(void)
{
mach_port_t bp;
if (task_get_bootstrap_port(mach_task_self(), &bp) != KERN_SUCCESS)
fatal_error("Can't find bootstrap port\n");
if (mach_port_allocate(mach_task_self(), MACH_PORT_RIGHT_RECEIVE, &server_mach_port) != KERN_SUCCESS)
fatal_error("Can't allocate port\n");
if (task_get_bootstrap_port( mach_task_self(), &bp ) != KERN_SUCCESS)
fatal_error( "Can't find bootstrap port\n" );
if (mach_port_allocate( mach_task_self(), MACH_PORT_RIGHT_RECEIVE, &server_mach_port ) != KERN_SUCCESS)
fatal_error( "Can't allocate port\n" );
if (mach_port_insert_right( mach_task_self(),
server_mach_port,
server_mach_port,
MACH_MSG_TYPE_MAKE_SEND ) != KERN_SUCCESS)
fatal_error("Error inserting rights\n");
fatal_error( "Error inserting rights\n" );
if (bootstrap_register2( bp, server_dir, server_mach_port, 0 ) != KERN_SUCCESS)
fatal_error("Can't check in server_mach_port\n");
mach_port_deallocate(mach_task_self(), bp);
fatal_error( "Can't check in server_mach_port\n" );
mach_port_deallocate( mach_task_self(), bp );
}
/* initialize the per-process tracing mechanism */