diff --git a/src/gateway.c b/src/gateway.c index 1e404a233..b08469333 100644 --- a/src/gateway.c +++ b/src/gateway.c @@ -718,7 +718,7 @@ static void handle_exec_sql_next(struct gateway *g, static void handle_exec_sql_cb(struct exec *exec, int status) { tracef("handle exec sql cb status %d", status); - fprintf(stderr, "[INFO FOR COLE] handle exec sql cb %p %d finalizing\n", exec->stmt, status); + fprintf(stderr, "[INFO FOR COLE] handle exec sql cb req=%p stmt=%p %d finalizing\n", exec, exec->stmt, status); struct gateway *g = exec->data; struct handle *req = g->req; diff --git a/src/leader.c b/src/leader.c index bca78d60f..0f9d07d12 100644 --- a/src/leader.c +++ b/src/leader.c @@ -188,12 +188,12 @@ void leader__close(struct leader *l) int rc; /* TODO: there shouldn't be any ongoing exec request. */ if (l->exec != NULL) { - fprintf(stderr, "[INFO FOR COLE] leader close %p\n", l->exec->stmt); + fprintf(stderr, "[INFO FOR COLE] leader close req=%p stmt=%p\n", l->exec, l->exec->stmt); assert(l->inflight == NULL); l->exec->status = SQLITE_ERROR; exec_done(l->exec, 0); } else { - fprintf(stderr, "[INFO FOR COLE] leader close nothing happening\n"); + fprintf(stderr, "[INFO FOR COLE] leader close req=%p nothing happening\n", l->exec); } rc = sqlite3_close(l->conn); if (rc != SQLITE_OK) { @@ -459,7 +459,7 @@ static void exec_done(struct exec *req, int asyncness) } sm_fini(&req->sm); req->leader->exec = NULL; - fprintf(stderr, "[INFO FOR COLE] exec_done clearing %p\n", req->stmt); + fprintf(stderr, "[INFO FOR COLE] exec_done clearing req=%p stmt=%p\n", req, req->stmt); if (req->cb == NULL) { fprintf(stderr, "[INFO FOR COLE] skip callback for %p because cb is NULL\n", req->stmt); } else if (asyncness != 0) {