From 84fd26e585caefcbbf2e297522b2fb7b55953065 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 7 May 2019 13:21:04 +0200 Subject: 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. --- executor/executor.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'executor/executor.cc') 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) -- cgit mrf-deployment