hw/display/cirrus_vga: Convert debug printf() to trace event
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20200526062252.19852-4-f4bug@amsat.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
85664cf0a4
commit
bee61ca2b9
@ -1512,9 +1512,7 @@ static int cirrus_vga_read_gr(CirrusVGAState * s, unsigned reg_index)
|
|||||||
static void
|
static void
|
||||||
cirrus_vga_write_gr(CirrusVGAState * s, unsigned reg_index, int reg_value)
|
cirrus_vga_write_gr(CirrusVGAState * s, unsigned reg_index, int reg_value)
|
||||||
{
|
{
|
||||||
#if defined(DEBUG_BITBLT) && 0
|
trace_vga_cirrus_write_gr(reg_index, reg_value);
|
||||||
printf("gr%02x: %02x\n", reg_index, reg_value);
|
|
||||||
#endif
|
|
||||||
switch (reg_index) {
|
switch (reg_index) {
|
||||||
case 0x00: // Standard VGA, BGCOLOR 0x000000ff
|
case 0x00: // Standard VGA, BGCOLOR 0x000000ff
|
||||||
s->vga.gr[reg_index] = reg_value & gr_mask[reg_index];
|
s->vga.gr[reg_index] = reg_value & gr_mask[reg_index];
|
||||||
|
@ -133,6 +133,7 @@ vga_vbe_write(uint32_t index, uint32_t val) "index 0x%x, val 0x%x"
|
|||||||
vga_cirrus_read_io(uint32_t addr, uint32_t val) "addr 0x%x, val 0x%x"
|
vga_cirrus_read_io(uint32_t addr, uint32_t val) "addr 0x%x, val 0x%x"
|
||||||
vga_cirrus_write_io(uint32_t addr, uint32_t val) "addr 0x%x, val 0x%x"
|
vga_cirrus_write_io(uint32_t addr, uint32_t val) "addr 0x%x, val 0x%x"
|
||||||
vga_cirrus_write_blt(uint32_t offset, uint32_t val) "offset 0x%x, val 0x%x"
|
vga_cirrus_write_blt(uint32_t offset, uint32_t val) "offset 0x%x, val 0x%x"
|
||||||
|
vga_cirrus_write_gr(uint8_t index, uint8_t val) "GR addr 0x%02x, val 0x%02x"
|
||||||
|
|
||||||
# sii9022.c
|
# sii9022.c
|
||||||
sii9022_read_reg(uint8_t addr, uint8_t val) "addr 0x%02x, val 0x%02x"
|
sii9022_read_reg(uint8_t addr, uint8_t val) "addr 0x%02x, val 0x%02x"
|
||||||
|
Loading…
Reference in New Issue
Block a user