aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-05-07 13:21:04 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-05-07 18:01:24 +0200
commit84fd26e585caefcbbf2e297522b2fb7b55953065 (patch)
tree7fbd9b152f60dda27934da701e97745b39eb2f59 /executor
parent3e1f67583e921630d4fe39b034c81af94a7b5847 (diff)
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.
Diffstat (limited to 'executor')
-rw-r--r--executor/executor.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 492cb314d..50b922182 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -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");
@@ -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)