mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-06 07:15:30 -04:00
vt: only prep logging of CSI/ESC parameters when debug logging is enabled
This commit is contained in:
parent
0f48b4f8f7
commit
9e3b8ab3ff
2 changed files with 2 additions and 2 deletions
2
csi.c
2
csi.c
|
|
@ -260,7 +260,7 @@ csi_sgr(struct terminal *term)
|
||||||
bool
|
bool
|
||||||
csi_dispatch(struct terminal *term, uint8_t final)
|
csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
{
|
{
|
||||||
#if defined(_DEBUG)
|
#if defined(_DEBUG) && defined(LOG_ENABLE_DBG) && LOG_ENABLE_DBG
|
||||||
char log[1024];
|
char log[1024];
|
||||||
int c = snprintf(log, sizeof(log), "CSI: ");
|
int c = snprintf(log, sizeof(log), "CSI: ");
|
||||||
|
|
||||||
|
|
|
||||||
2
vt.c
2
vt.c
|
|
@ -555,7 +555,7 @@ static const enum action exit_actions[] = {
|
||||||
static bool
|
static bool
|
||||||
esc_dispatch(struct terminal *term, uint8_t final)
|
esc_dispatch(struct terminal *term, uint8_t final)
|
||||||
{
|
{
|
||||||
#if defined(_DEBUG)
|
#if defined(_DEBUG) && defined(LOG_ENABLE_DBG) && LOG_ENABLED_DBG
|
||||||
char log[1024];
|
char log[1024];
|
||||||
int c = snprintf(log, sizeof(log), "ESC: ");
|
int c = snprintf(log, sizeof(log), "ESC: ");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue