char: rename qemu_chr_printf() -> qemu_chr_fe_printf()
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
2cc6e0a142
commit
e7e71b0ec6
@ -92,8 +92,8 @@ static void malta_fpga_update_display(void *opaque)
|
|||||||
}
|
}
|
||||||
leds_text[8] = '\0';
|
leds_text[8] = '\0';
|
||||||
|
|
||||||
qemu_chr_printf(s->display, "\e[H\n\n|\e[32m%-8.8s\e[00m|\r\n", leds_text);
|
qemu_chr_fe_printf(s->display, "\e[H\n\n|\e[32m%-8.8s\e[00m|\r\n", leds_text);
|
||||||
qemu_chr_printf(s->display, "\n\n\n\n|\e[31m%-8.8s\e[00m|", s->display_text);
|
qemu_chr_fe_printf(s->display, "\n\n\n\n|\e[31m%-8.8s\e[00m|", s->display_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -417,15 +417,15 @@ static void malta_fpga_reset(void *opaque)
|
|||||||
|
|
||||||
static void malta_fpga_led_init(CharDriverState *chr)
|
static void malta_fpga_led_init(CharDriverState *chr)
|
||||||
{
|
{
|
||||||
qemu_chr_printf(chr, "\e[HMalta LEDBAR\r\n");
|
qemu_chr_fe_printf(chr, "\e[HMalta LEDBAR\r\n");
|
||||||
qemu_chr_printf(chr, "+--------+\r\n");
|
qemu_chr_fe_printf(chr, "+--------+\r\n");
|
||||||
qemu_chr_printf(chr, "+ +\r\n");
|
qemu_chr_fe_printf(chr, "+ +\r\n");
|
||||||
qemu_chr_printf(chr, "+--------+\r\n");
|
qemu_chr_fe_printf(chr, "+--------+\r\n");
|
||||||
qemu_chr_printf(chr, "\n");
|
qemu_chr_fe_printf(chr, "\n");
|
||||||
qemu_chr_printf(chr, "Malta ASCII\r\n");
|
qemu_chr_fe_printf(chr, "Malta ASCII\r\n");
|
||||||
qemu_chr_printf(chr, "+--------+\r\n");
|
qemu_chr_fe_printf(chr, "+--------+\r\n");
|
||||||
qemu_chr_printf(chr, "+ +\r\n");
|
qemu_chr_fe_printf(chr, "+ +\r\n");
|
||||||
qemu_chr_printf(chr, "+--------+\r\n");
|
qemu_chr_fe_printf(chr, "+--------+\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static MaltaFPGAState *malta_fpga_init(target_phys_addr_t base, qemu_irq uart_irq, CharDriverState *uart_chr)
|
static MaltaFPGAState *malta_fpga_init(target_phys_addr_t base, qemu_irq uart_irq, CharDriverState *uart_chr)
|
||||||
|
@ -179,7 +179,7 @@ void qemu_chr_accept_input(CharDriverState *s)
|
|||||||
s->chr_accept_input(s);
|
s->chr_accept_input(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
void qemu_chr_printf(CharDriverState *s, const char *fmt, ...)
|
void qemu_chr_fe_printf(CharDriverState *s, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
char buf[READ_BUF_LEN];
|
char buf[READ_BUF_LEN];
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
@ -85,7 +85,7 @@ void qemu_chr_set_echo(struct CharDriverState *chr, bool echo);
|
|||||||
void qemu_chr_guest_open(struct CharDriverState *chr);
|
void qemu_chr_guest_open(struct CharDriverState *chr);
|
||||||
void qemu_chr_guest_close(struct CharDriverState *chr);
|
void qemu_chr_guest_close(struct CharDriverState *chr);
|
||||||
void qemu_chr_close(CharDriverState *chr);
|
void qemu_chr_close(CharDriverState *chr);
|
||||||
void qemu_chr_printf(CharDriverState *s, const char *fmt, ...)
|
void qemu_chr_fe_printf(CharDriverState *s, const char *fmt, ...)
|
||||||
GCC_FMT_ATTR(2, 3);
|
GCC_FMT_ATTR(2, 3);
|
||||||
int qemu_chr_fe_write(CharDriverState *s, const uint8_t *buf, int len);
|
int qemu_chr_fe_write(CharDriverState *s, const uint8_t *buf, int len);
|
||||||
void qemu_chr_send_event(CharDriverState *s, int event);
|
void qemu_chr_send_event(CharDriverState *s, int event);
|
||||||
|
Loading…
Reference in New Issue
Block a user