Fix a few more warnings
Some are important, e.g. the seemingly harmless braces around if with dprintf, since that dprintf is defined as empty, will screw things up and grab the next line Change-Id: Ie5e1cf813178ad708ff42ae5e477fbc96034471c
This commit is contained in:
committed by
Dominique Martinet
parent
0994c3300e
commit
6df4bd8f8c
@ -3333,9 +3333,9 @@ int main_loop(struct thread_data_s *my_thread)
|
||||
}
|
||||
|
||||
/* Don't print when got a msg to stdout */
|
||||
if (!(w.sr.number == __NR_write && w.sr.args[0] == 1))
|
||||
if (!(w.sr.number == __NR_write && w.sr.args[0] == 1)) {
|
||||
__dprintf("[%d] got syscall: %ld\n", cpu, w.sr.number);
|
||||
|
||||
}
|
||||
//pthread_mutex_lock(lock);
|
||||
|
||||
my_thread->remote_tid = w.sr.rtid;
|
||||
@ -3441,11 +3441,13 @@ int main_loop(struct thread_data_s *my_thread)
|
||||
term = (w.sr.args[0] & 0xff00) >> 8;
|
||||
if(isatty(2)){
|
||||
if(sig){
|
||||
if(!ischild)
|
||||
if(!ischild) {
|
||||
fprintf(stderr, "Terminate by signal %d\n", sig);
|
||||
}
|
||||
}
|
||||
else if(term)
|
||||
else if(term) {
|
||||
__dprintf("Exit status: %d\n", term);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user