From: Stefan Metzmacher Date: Wed, 14 Jun 2017 14:59:10 +0000 (+0200) Subject: tevent: include the finish location in tevent_req_default_print() X-Git-Tag: tevent-0.9.32~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7f649b7044a5579d321cc1cfa7893a8221f6412;p=thirdparty%2Fsamba.git 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 Reviewed-by: Volker Lendecke --- 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 ); }