Skip to content

Commit

Permalink
Tweak logging from syscall_handle()
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed May 9, 2018
1 parent 9f01623 commit 0302a38
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion reprozip/native/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1193,13 +1193,19 @@ int syscall_handle(struct Process *process)
{
int ret = 0;
if(entry->name && verbosity >= 3)
log_debug(process->tid, "%s()", entry->name);
log_debug(process->tid, "%c%s()",
process->in_syscall?'-':'+',
entry->name);
if(!process->in_syscall && entry->proc_entry)
ret = entry->proc_entry(entry->name, process, entry->udata);
else if(process->in_syscall && entry->proc_exit)
ret = entry->proc_exit(entry->name, process, entry->udata);
if(ret != 0)
{
log_error(process->tid, "handler for syscall %d %s failed!",
syscall, process->in_syscall?"exit":"entry");
return -1;
}
}
}

Expand Down

0 comments on commit 0302a38

Please sign in to comment.