Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
executor: fix 32-bit build
Syscall args can't be printed with %lx now.
Cast them to uint64 for now since we have only 2 such places.
  • Loading branch information
dvyukov committed May 7, 2019
1 parent 3e1f675 commit 84fd26e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions executor/executor.cc
Expand Up @@ -1019,7 +1019,7 @@ void execute_call(thread_t* th)
for (int i = 0; i < th->num_args; i++) {
if (i != 0)
debug(", ");
debug("0x%lx", th->args[i]);
debug("0x%llx", (uint64)th->args[i]);
}
debug(")\n");

Expand Down Expand Up @@ -1048,8 +1048,8 @@ void execute_call(thread_t* th)
th->fault_injected = fault_injected(fail_fd);
}

debug("#%d [%llums] <- %s=0x%lx errno=%d ",
th->id, current_time_ms() - start_time_ms, call->name, th->res, th->reserrno);
debug("#%d [%llums] <- %s=0x%llx errno=%d ",
th->id, current_time_ms() - start_time_ms, call->name, (uint64)th->res, th->reserrno);
if (flag_cover)
debug("cover=%u ", th->cov.size);
if (flag_inject_fault && th->call_index == flag_fault_call)
Expand Down

0 comments on commit 84fd26e

Please sign in to comment.