aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-07-04 09:55:25 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-07-05 10:44:34 +0200
commit36de6b8b2ea38292ad438c14926b528a9ffee34e (patch)
treec02c59d8ee9fe3523eadfe34d6a1bca98778f995 /executor/executor.h
parentf525fd7250aae36586c4a4e5bbe0c11f2314f875 (diff)
executor: extend debug output and diagnostics
Diffstat (limited to 'executor/executor.h')
-rw-r--r--executor/executor.h3
1 files changed, 2 insertions, 1 deletions
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;