diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-10-20 21:12:10 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-10-20 21:12:10 +0000 |
commit | 8a9cae1fc029ec70b49d85f6ee284b696f767858 (patch) | |
tree | a9bf39434553f4c36c8c2db21b7f465269b67ecb /usr.bin/tmux/cmd-wait-for.c | |
parent | 88ab0d0c810f11565e2824074aeaa22271362d2b (diff) |
Use client pointer not file descriptor in logging.
Diffstat (limited to 'usr.bin/tmux/cmd-wait-for.c')
-rw-r--r-- | usr.bin/tmux/cmd-wait-for.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-wait-for.c b/usr.bin/tmux/cmd-wait-for.c index e76336df8ff..cdddf9002e2 100644 --- a/usr.bin/tmux/cmd-wait-for.c +++ b/usr.bin/tmux/cmd-wait-for.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-wait-for.c,v 1.9 2015/09/13 10:45:55 nicm Exp $ */ +/* $OpenBSD: cmd-wait-for.c,v 1.10 2015/10/20 21:12:08 nicm Exp $ */ /* * Copyright (c) 2013 Nicholas Marriott <nicm@users.sourceforge.net> @@ -170,12 +170,11 @@ cmd_wait_for_wait(struct cmd_q *cmdq, const char *name, wc = cmd_wait_for_add(name); if (wc->woken) { - log_debug("wait channel %s already woken (client %d)", wc->name, - c->tty.fd); + log_debug("wait channel %s already woken (%p)", wc->name, c); cmd_wait_for_remove(wc); return (CMD_RETURN_NORMAL); } - log_debug("wait channel %s not woken (client %d)", wc->name, c->tty.fd); + log_debug("wait channel %s not woken (%p)", wc->name, c); TAILQ_INSERT_TAIL(&wc->waiters, cmdq, waitentry); cmdq->references++; |