summaryrefslogtreecommitdiffstats
path: root/cmd-queue.c
diff options
context:
space:
mode:
authornicm <nicm>2019-05-25 10:44:09 +0000
committernicm <nicm>2019-05-25 10:44:09 +0000
commitd7586d3d65bb1361928205751ea7a69f69a4aa87 (patch)
treea2bdf9d4d8b3b5ecca462d8e1696d4d3fcc4932a /cmd-queue.c
parentf8d3d247d884a9dc0b23f2799944c15630cab28f (diff)
Use client name when logging command queue.
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c4
1 files changed, 2 insertions, 2 deletions
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 ("<global>");
- xsnprintf(s, sizeof s, "<%p>", c);
+ xsnprintf(s, sizeof s, "<%s>", c->name);
return (s);
}