From 9e3b8ab3ffb58414905e7858f1119f4ff2a900a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 1 Jul 2019 12:21:25 +0200 Subject: [PATCH] vt: only prep logging of CSI/ESC parameters when debug logging is enabled --- csi.c | 2 +- vt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/csi.c b/csi.c index 83f089ee..647d5052 100644 --- a/csi.c +++ b/csi.c @@ -260,7 +260,7 @@ csi_sgr(struct terminal *term) bool csi_dispatch(struct terminal *term, uint8_t final) { -#if defined(_DEBUG) +#if defined(_DEBUG) && defined(LOG_ENABLE_DBG) && LOG_ENABLE_DBG char log[1024]; int c = snprintf(log, sizeof(log), "CSI: "); diff --git a/vt.c b/vt.c index cb0b8a90..c7e75a94 100644 --- a/vt.c +++ b/vt.c @@ -555,7 +555,7 @@ static const enum action exit_actions[] = { static bool esc_dispatch(struct terminal *term, uint8_t final) { -#if defined(_DEBUG) +#if defined(_DEBUG) && defined(LOG_ENABLE_DBG) && LOG_ENABLED_DBG char log[1024]; int c = snprintf(log, sizeof(log), "ESC: ");