# HG changeset patch # User Horms # Node ID eb41d4dae66e9319d48c27cfa1821a096b1e6d5f # Parent b8237c1cc97f7ec76a5e0e9ca161c44c27500862 libxc: Use { after if consistently in xc_ptrace() Signed-Off-By: Horms diff -r b8237c1cc97f -r eb41d4dae66e tools/libxc/xc_ptrace.c --- a/tools/libxc/xc_ptrace.c Fri Mar 3 11:51:17 2006 +0900 +++ b/tools/libxc/xc_ptrace.c Fri Mar 3 11:54:50 2006 +0900 @@ -365,7 +365,8 @@ xc_ptrace( /* XXX assume that all CPUs have the same address space */ guest_va = (unsigned long *)map_domain_va( xc_handle, cpu, addr, PROT_READ|PROT_WRITE); - if ( guest_va == NULL ) { + if ( guest_va == NULL ) + { status = EFAULT; break; } @@ -418,11 +419,13 @@ xc_ptrace( cpu = index - 1; FETCH_REGS(cpu); /* Clear trace flag */ - if ( ctxt[cpu].user_regs.eflags & PSL_T ) { + if ( ctxt[cpu].user_regs.eflags & PSL_T ) + { ctxt[cpu].user_regs.eflags &= ~PSL_T; retval = xc_vcpu_setcontext(xc_handle, current_domid, cpu, &ctxt[cpu]); - if ( retval ) { + if ( retval ) + { perror("dom0 op failed"); break; }