diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2022-01-06 14:48:07 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2022-01-11 16:30:08 +0100 |
| commit | e32a30eb7d4ae377ae60eb4a5149e6fdf82b212a (patch) | |
| tree | 312d63c3d77d9366e422b7044a47c17183f93c4c /executor/executor.cc | |
| parent | ca0f51ac4a404a5378464e91c42eca8c1e78e21a (diff) | |
executor: don't print errno for successful calls
Don't print the confuing errno 14 for successful calls.
Diffstat (limited to 'executor/executor.cc')
| -rw-r--r-- | executor/executor.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/executor/executor.cc b/executor/executor.cc index 73f6053ee..923fccc63 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -1279,14 +1279,16 @@ void execute_call(thread_t* th) for (int i = 0; i < th->call_props.rerun; i++) NONFAILING(execute_syscall(call, th->args)); - debug("#%d [%llums] <- %s=0x%llx errno=%d ", - th->id, current_time_ms() - start_time_ms, call->name, (uint64)th->res, th->reserrno); + debug("#%d [%llums] <- %s=0x%llx", + th->id, current_time_ms() - start_time_ms, call->name, (uint64)th->res); + if (th->res == (intptr_t)-1) + debug(" errno=%d", th->reserrno); if (flag_coverage) - debug("cover=%u ", th->cov.size); + debug(" cover=%u", th->cov.size); if (th->call_props.fail_nth > 0) - debug("fault=%d ", th->fault_injected); + debug(" fault=%d", th->fault_injected); if (th->call_props.rerun > 0) - debug("rerun=%d ", th->call_props.rerun); + debug(" rerun=%d", th->call_props.rerun); debug("\n"); } |
