summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-09-01 19:16:01 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-09-01 19:16:01 +0000
commit79eeb95971defe6173aab3d09de617ecf1a2169b (patch)
tree6043b6ba9f6a395556bc66a0bb380e90a2828074 /usr.bin/tmux
parent96749b6841b5675920aedf98de660560a9b71f21 (diff)
Log the whole new input buffer once rather than each byte.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/input.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index 979cee00325..04966efab4f 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.83 2015/08/29 08:30:54 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.84 2015/09/01 19:16:00 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -862,10 +862,12 @@ input_parse(struct window_pane *wp)
notify_input(wp, evb);
off = 0;
+ log_debug("%s: %s, %zu bytes: %.*s", __func__, ictx->state->name, len,
+ (int)len, buf);
+
/* Parse the input. */
while (off < len) {
ictx->ch = buf[off++];
- log_debug("%s: '%c' %s", __func__, ictx->ch, ictx->state->name);
/* Find the transition. */
itr = ictx->state->transitions;
@@ -1070,7 +1072,7 @@ input_c0_dispatch(struct input_ctx *ictx)
struct window_pane *wp = ictx->wp;
struct screen *s = sctx->s;
- log_debug("%s: '%c", __func__, ictx->ch);
+ log_debug("%s: '%c'", __func__, ictx->ch);
switch (ictx->ch) {
case '\000': /* NUL */