mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
console: Replace conditional debug messages by trace methods
Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
1226961622
commit
5d28b0e960
2 changed files with 5 additions and 8 deletions
11
ui/console.c
11
ui/console.c
|
@ -29,7 +29,6 @@
|
|||
#include "sysemu/char.h"
|
||||
#include "trace.h"
|
||||
|
||||
//#define DEBUG_CONSOLE
|
||||
#define DEFAULT_BACKSCROLL 512
|
||||
#define MAX_CONSOLES 12
|
||||
#define CONSOLE_CURSOR_PERIOD 500
|
||||
|
@ -867,10 +866,8 @@ static void console_putchar(QemuConsole *s, int ch)
|
|||
s->nb_esc_params++;
|
||||
if (ch == ';')
|
||||
break;
|
||||
#ifdef DEBUG_CONSOLE
|
||||
fprintf(stderr, "escape sequence CSI%d;%d%c, %d parameters\n",
|
||||
s->esc_params[0], s->esc_params[1], ch, s->nb_esc_params);
|
||||
#endif
|
||||
trace_console_putchar_csi(s->esc_params[0], s->esc_params[1],
|
||||
ch, s->nb_esc_params);
|
||||
s->state = TTY_STATE_NORM;
|
||||
switch(ch) {
|
||||
case 'A':
|
||||
|
@ -984,9 +981,7 @@ static void console_putchar(QemuConsole *s, int ch)
|
|||
s->y = s->y_saved;
|
||||
break;
|
||||
default:
|
||||
#ifdef DEBUG_CONSOLE
|
||||
fprintf(stderr, "unhandled escape character '%c'\n", ch);
|
||||
#endif
|
||||
trace_console_putchar_unhandled(ch);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue