tevent debug
authorStefan Metzmacher <metze@samba.org>
Thu, 16 Apr 2009 19:31:40 +0000 (21:31 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 15 May 2009 13:27:20 +0000 (15:27 +0200)
lib/tevent/tevent_req.c

index 01700006eb9eca777de7d2fa35b485fd8b8100c7..2d4a7a4a96e2f8a6b7fa7157de65148a0d398769 100644 (file)
@@ -275,6 +275,14 @@ void tevent_req_received(struct tevent_req *req)
        TALLOC_FREE(req->internal.trigger);
        TALLOC_FREE(req->internal.timer);
 
+       if (req->internal.state != TEVENT_REQ_DONE) {
+               printf("state[%u] error[0x0x%016X] type[%s] create[%s] finish[%s]\n",
+                       req->internal.state, req->internal.error,
+                       req->internal.private_type,
+                       req->internal.create_location,
+                       req->internal.finish_location);
+       }
+
        req->internal.state = TEVENT_REQ_RECEIVED;
 }