From d7586d3d65bb1361928205751ea7a69f69a4aa87 Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 25 May 2019 10:44:09 +0000 Subject: Use client name when logging command queue. --- cmd-queue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd-queue.c') diff --git a/cmd-queue.c b/cmd-queue.c index 0cfa57fe..c707dd7b 100644 --- a/cmd-queue.c +++ b/cmd-queue.c @@ -32,11 +32,11 @@ static struct cmdq_list global_queue = TAILQ_HEAD_INITIALIZER(global_queue); static const char * cmdq_name(struct client *c) { - static char s[32]; + static char s[256]; if (c == NULL) return (""); - xsnprintf(s, sizeof s, "<%p>", c); + xsnprintf(s, sizeof s, "<%s>", c->name); return (s); } -- cgit