From 9536cf93b9830257a133ea142f0627fad84ab30c Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 16 Oct 2014 14:29:06 +0200 Subject: terminal: log unsupported ANSI or DEC mode changes --- src/libsystemd-terminal/term-screen.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libsystemd-terminal') diff --git a/src/libsystemd-terminal/term-screen.c b/src/libsystemd-terminal/term-screen.c index f2ac5c92c4..acd7cc966a 100644 --- a/src/libsystemd-terminal/term-screen.c +++ b/src/libsystemd-terminal/term-screen.c @@ -402,6 +402,8 @@ static void screen_mode_change_ansi(term_screen *screen, unsigned mode, bool set set_reset(screen, TERM_FLAG_NEWLINE_MODE, set); break; + default: + log_debug("terminal: failed to %s unknown ANSI mode %u", set ? "set" : "unset", mode); } } @@ -499,6 +501,8 @@ static void screen_mode_change_dec(term_screen *screen, unsigned int mode, bool screen_restore_state(screen, &screen->saved_alt); break; + default: + log_debug("terminal: failed to %s unknown DEC mode %u", set ? "set" : "unset", mode); } } -- cgit v1.2.3-54-g00ecf