From e32a30eb7d4ae377ae60eb4a5149e6fdf82b212a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 6 Jan 2022 14:48:07 +0100 Subject: executor: don't print errno for successful calls Don't print the confuing errno 14 for successful calls. --- executor/executor.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'executor') 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"); } -- cgit mrf-deployment