From a27868cd9f6bd5f1b43a67e63c70d2efa685bc32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 18 Jun 2019 21:54:42 +0200 Subject: [PATCH] vt: disable the worst spamming logging --- vt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vt.c b/vt.c index 06d4a1a0..da211e8c 100644 --- a/vt.c +++ b/vt.c @@ -184,11 +184,11 @@ action(struct terminal *term, enum action action, uint8_t c) cell->dirty = true; if (term->vt.utf8.idx > 0) { - LOG_DBG("print: UTF8: %.*s", (int)term->vt.utf8.idx, term->vt.utf8.data); + //LOG_DBG("print: UTF8: %.*s", (int)term->vt.utf8.idx, term->vt.utf8.data); memcpy(cell->c, term->vt.utf8.data, term->vt.utf8.idx); cell->c[term->vt.utf8.idx] = '\0'; } else { - LOG_DBG("print: ASCII: %c", c); + //LOG_DBG("print: ASCII: %c", c); cell->c[0] = c; cell->c[1] = '\0'; } @@ -254,6 +254,7 @@ action(struct terminal *term, enum action action, uint8_t c) term->vt.utf8.left = 3; else term->vt.utf8.left = 4; + //LOG_DBG("begin UTF-8 (%zu chars)", term->vt.utf8.left); term->vt.utf8.data[term->vt.utf8.idx++] = c; term->vt.utf8.left--; break; @@ -265,7 +266,7 @@ action(struct terminal *term, enum action action, uint8_t c) static bool process_utf8(struct terminal *term, uint8_t c) { - LOG_DBG("UTF-8: 0x%02x", c); + //LOG_DBG("UTF-8: 0x%02x", c); term->vt.utf8.data[term->vt.utf8.idx++] = c; term->vt.utf8.left--;