diff options
author | nicm <nicm> | 2015-09-01 19:16:00 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-09-01 19:16:00 +0000 |
commit | 66a2720c56328c186784345664ba283a4ca0748c (patch) | |
tree | 5146e864706c891db920ce95ee754d98146a4d5e | |
parent | 364a885b0c8b3bc58396775603c7927e1fb19cee (diff) | |
download | rtmux-66a2720c56328c186784345664ba283a4ca0748c.tar.gz rtmux-66a2720c56328c186784345664ba283a4ca0748c.tar.bz2 rtmux-66a2720c56328c186784345664ba283a4ca0748c.zip |
Log the whole new input buffer once rather than each byte.
-rw-r--r-- | input.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 */ |