diff options
author | Stefan Metzmacher <metze@samba.org> | 2017-06-14 16:59:10 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2017-06-22 13:07:41 +0200 |
commit | d7f649b7044a5579d321cc1cfa7893a8221f6412 (patch) | |
tree | e134f72db6aa843f31f14657a3a7b83b177a8fe5 /lib/tevent | |
parent | bb11cf2c06bd49351b18da40e4fecbf5ed7f30ac (diff) | |
download | samba-d7f649b7044a5579d321cc1cfa7893a8221f6412.tar.gz |
tevent: include the finish location in tevent_req_default_print()
It's verify useful when debugging code without a debugger to
be able to use tevent_req_print() in DEBUG statements.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'lib/tevent')
-rw-r--r-- | lib/tevent/tevent_req.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/tevent/tevent_req.c b/lib/tevent/tevent_req.c index e309c3d9ca3..22f7a4fd345 100644 --- a/lib/tevent/tevent_req.c +++ b/lib/tevent/tevent_req.c @@ -31,14 +31,15 @@ char *tevent_req_default_print(struct tevent_req *req, TALLOC_CTX *mem_ctx) { return talloc_asprintf(mem_ctx, "tevent_req[%p/%s]: state[%d] error[%lld (0x%llX)] " - " state[%s (%p)] timer[%p]", + " state[%s (%p)] timer[%p] finish[%s]", req, req->internal.create_location, req->internal.state, (unsigned long long)req->internal.error, (unsigned long long)req->internal.error, talloc_get_name(req->data), req->data, - req->internal.timer + req->internal.timer, + req->internal.finish_location ); } |