aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-01 10:21:25 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-01 10:21:25 +0000
commit9e3b8ab3ffb58414905e7858f1119f4ff2a900a0 (patch)
tree6ed028505e92d0f2acb4b22ebb80fe89ffa0ea46 /csi.c
parentterminal: prepare for floating grids (diff)
vt: only prep logging of CSI/ESC parameters when debug logging is enabled
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c2
1 files changed, 1 insertions, 1 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: ");