From ae3b836a3306a71ab37288883a53a4103ef76dac Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 18 Jan 2012 10:38:45 +0100 Subject: [PATCH 51/52] console: Clean up confusing indentation in console_putchar() RH-Author: Markus Armbruster Message-id: <1326883126-22053-52-git-send-email-armbru@redhat.com> Patchwork-id: 36599 O-Subject: [RHEL-6.3 PATCH qemu-kvm 51/52] console: Clean up confusing indentation in console_putchar() Bugzilla: 758194 RH-Acked-by: Miroslav Rezanina RH-Acked-by: Laszlo Ersek RH-Acked-by: Amit Shah Signed-off-by: Markus Armbruster Signed-off-by: Stefan Hajnoczi (cherry picked from commit f94a950f790aabb33fcb75f0a4a3bbaaa6e3810b) --- console.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) Signed-off-by: Michal Novotny --- console.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/console.c b/console.c index 83703fe..50820e8 100644 --- a/console.c +++ b/console.c @@ -1002,16 +1002,16 @@ static void console_putchar(TextConsole *s, int ch) console_clear_xy(s, x, y); } } - break; + break; } case 'K': switch (s->esc_params[0]) { case 0: - /* clear to eol */ - for(x = s->x; x < s->width; x++) { + /* clear to eol */ + for(x = s->x; x < s->width; x++) { console_clear_xy(s, x, s->y); - } - break; + } + break; case 1: /* clear from beginning of line */ for (x = 0; x <= s->x; x++) { @@ -1023,12 +1023,12 @@ static void console_putchar(TextConsole *s, int ch) for(x = 0; x < s->width; x++) { console_clear_xy(s, x, s->y); } - break; - } + break; + } break; case 'm': - console_handle_escape(s); - break; + console_handle_escape(s); + break; case 'n': /* report cursor position */ /* TODO: send ESC[row;colR */ -- 1.7.7.5