From 616896e2a52e0223d83f2625f96c67093b88e463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 29 Nov 2019 23:59:24 +0100 Subject: [PATCH] csi/ocs/vt: log unhandled/unrecognized sequences as debug messages Having them as error messages was nice when we where still missing lots of sequences. Now we don't anymore, and these just spam stdout as well as syslog when e.g. cat:ing binary data. --- csi.c | 4 ++-- osc.c | 2 +- vt.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/csi.c b/csi.c index a07267b1..07e0f543 100644 --- a/csi.c +++ b/csi.c @@ -18,8 +18,8 @@ #define min(x, y) ((x) < (y) ? (x) : (y)) -#define UNHANDLED() LOG_ERR("unhandled: %s", csi_as_string(term, final)) -#define UNHANDLED_SGR() LOG_ERR("unhandled: %s", csi_as_string(term, 'm')) +#define UNHANDLED() LOG_DBG("unhandled: %s", csi_as_string(term, final)) +#define UNHANDLED_SGR() LOG_DBG("unhandled: %s", csi_as_string(term, 'm')) static void sgr_reset(struct terminal *term) diff --git a/osc.c b/osc.c index 091b8e0e..2e008ac3 100644 --- a/osc.c +++ b/osc.c @@ -12,7 +12,7 @@ #include "terminal.h" #include "vt.h" -#define UNHANDLED() LOG_ERR("unhandled: OSC: %.*s", (int)term->vt.osc.idx, term->vt.osc.data) +#define UNHANDLED() LOG_DBG("unhandled: OSC: %.*s", (int)term->vt.osc.idx, term->vt.osc.data) static void osc_to_clipboard(struct terminal *term, const char *target, diff --git a/vt.c b/vt.c index 82febc91..01090edb 100644 --- a/vt.c +++ b/vt.c @@ -14,7 +14,7 @@ #define max(x, y) ((x) > (y) ? (x) : (y)) -#define UNHANDLED() LOG_ERR("unhandled: %s", esc_as_string(term, final)) +#define UNHANDLED() LOG_DBG("unhandled: %s", esc_as_string(term, final)) /* https://vt100.net/emu/dec_ansi_parser */