Commit 1eb8f41e authored by Marc-Aurel Zent's avatar Marc-Aurel Zent Committed by Alexandre Julliard

server: Improve formatting in mach init_tracing_mechanism().

parent dee10199
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment