vt: only prep logging of CSI/ESC parameters when debug logging is enabled

This commit is contained in:
Daniel Eklöf 2019-07-01 12:21:25 +02:00
parent 0f48b4f8f7
commit 9e3b8ab3ff
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 2 additions and 2 deletions

2
csi.c
View file

@ -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: ");

2
vt.c
View file

@ -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: ");