summaryrefslogtreecommitdiffstats
path: root/cmd-queue.c
diff options
context:
space:
mode:
authornicm <nicm>2015-09-16 22:41:00 +0000
committernicm <nicm>2015-09-16 22:41:00 +0000
commitc1d0b6a6eed2fd393ea30d257ce147e8f6b5e6c8 (patch)
tree7d28b93ed43a851848443aa0e704c03edff02a7e /cmd-queue.c
parent232a0ffc34bd1c4c3dbb006369b8c87b9ee55c9a (diff)
Log when cmdq_continue is called.
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd-queue.c b/cmd-queue.c
index 217045fa..1fe34dce 100644
--- a/cmd-queue.c
+++ b/cmd-queue.c
@@ -195,6 +195,7 @@ cmdq_continue_one(struct cmd_q *cmdq)
int
cmdq_continue(struct cmd_q *cmdq)
{
+ struct client *c = cmdq->client;
struct cmd_q_item *next;
enum cmd_retval retval;
int empty;
@@ -202,6 +203,9 @@ cmdq_continue(struct cmd_q *cmdq)
cmdq->references++;
notify_disable();
+ log_debug("continuing cmdq %p: flags=%#x, client=%d", cmdq, cmdq->flags,
+ c != NULL ? c->ibuf.fd : -1);
+
empty = TAILQ_EMPTY(&cmdq->queue);
if (empty)
goto empty;