diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2021-04-25 20:04:46 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2021-04-25 20:04:46 +0000 |
| commit | 9026095a24daeb0adfa2b1617f18fb5082d4ea49 (patch) | |
| tree | db306da389ff2e29831a1703db0e7f93d26ed7a2 | |
| parent | Merge branch 'DECSET-2026' (diff) | |
dcs: only log debug warnings in bsu() and esu() for unhandled params
| -rw-r--r-- | dcs.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -11,8 +11,9 @@ bsu(struct terminal *term) { /* https://gitlab.com/gnachman/iterm2/-/wikis/synchronized-updates-spec */ - LOG_DBG("untested: BSU - Begin Synchronized Update (params: %.*s)", - (int)term->vt.dcs.idx, term->vt.dcs.data); + size_t n = term->vt.dcs.idx; + if (unlikely(n > 0)) + LOG_DBG("BSU with unknown params: %.*s)", (int)n, term->vt.dcs.data); term_enable_app_sync_updates(term); } @@ -22,8 +23,9 @@ esu(struct terminal *term) { /* https://gitlab.com/gnachman/iterm2/-/wikis/synchronized-updates-spec */ - LOG_DBG("untested: ESU - End Synchronized Update (params: %.*s)", - (int)term->vt.dcs.idx, term->vt.dcs.data); + size_t n = term->vt.dcs.idx; + if (unlikely(n > 0)) + LOG_DBG("ESU with unknown params: %.*s)", (int)n, term->vt.dcs.data); term_disable_app_sync_updates(term); } |
