strace.c: minor style fixes
* strace.c (test_ptrace_seize): Remove excess braces. (init): Wrap overly long string literal. Add braces to the else if branch.
This commit is contained in:
parent
a1d9d66142
commit
146444206c
9
strace.c
9
strace.c
@ -1488,9 +1488,8 @@ test_ptrace_seize(void)
|
||||
perror_func_msg_and_die("unexpected wait result %d",
|
||||
tracee_pid);
|
||||
}
|
||||
if (WIFSIGNALED(status)) {
|
||||
if (WIFSIGNALED(status))
|
||||
return;
|
||||
}
|
||||
|
||||
error_func_msg_and_die("unexpected wait status %#x", status);
|
||||
}
|
||||
@ -1819,10 +1818,12 @@ init(int argc, char *argv[])
|
||||
* when using popen, so prohibit it.
|
||||
*/
|
||||
if (followfork >= 2)
|
||||
error_msg_and_help("piping the output and -ff are mutually exclusive");
|
||||
error_msg_and_help("piping the output and -ff "
|
||||
"are mutually exclusive");
|
||||
shared_log = strace_popen(outfname + 1);
|
||||
} else if (followfork < 2)
|
||||
} else if (followfork < 2) {
|
||||
shared_log = strace_fopen(outfname);
|
||||
}
|
||||
} else {
|
||||
/* -ff without -o FILE is the same as single -f */
|
||||
if (followfork >= 2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user