Use client name when logging command queue.

This commit is contained in:
nicm
2019-05-25 10:44:09 +00:00
parent f8d3d247d8
commit d7586d3d65
2 changed files with 84 additions and 5 deletions

View File

@ -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);
}