From 36de6b8b2ea38292ad438c14926b528a9ffee34e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 4 Jul 2018 09:55:25 +0200 Subject: executor: extend debug output and diagnostics --- executor/executor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'executor/executor.h') diff --git a/executor/executor.h b/executor/executor.h index 34c7efd48..0bb0ea2cf 100644 --- a/executor/executor.h +++ b/executor/executor.h @@ -646,6 +646,7 @@ void handle_completion(thread_t* th) reply.comps_size = 0; if (write(kOutPipeFd, &reply, sizeof(reply)) != sizeof(reply)) fail("control pipe call write failed"); + debug("out: index=%u num=%u errno=%d\n", th->call_index, th->call_num, reserrno); } } th->handled = true; @@ -862,7 +863,7 @@ uint64 read_input(uint64** input_posp, bool peek) { uint64* input_pos = *input_posp; if ((char*)input_pos >= input_data + kMaxInput) - fail("input command overflows input"); + fail("input command overflows input %p: [%p:%p)", input_pos, input_data, input_data + kMaxInput); if (!peek) *input_posp = input_pos + 1; return *input_pos; -- cgit mrf-deployment