hw/display/cirrus_vga: Use qemu_log_mask(UNIMP) instead of debug printf
Replace some debug printf() calls by qemu_log_mask(LOG_UNIMP), and add a new one in cirrus_linear_bitblt_read(). Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20200526062252.19852-5-f4bug@amsat.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
bee61ca2b9
commit
bb6e9e9407
@ -35,6 +35,7 @@
|
|||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "qemu/module.h"
|
#include "qemu/module.h"
|
||||||
#include "qemu/units.h"
|
#include "qemu/units.h"
|
||||||
|
#include "qemu/log.h"
|
||||||
#include "sysemu/reset.h"
|
#include "sysemu/reset.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "trace.h"
|
#include "trace.h"
|
||||||
@ -905,9 +906,8 @@ static int cirrus_bitblt_cputovideo(CirrusVGAState * s)
|
|||||||
static int cirrus_bitblt_videotocpu(CirrusVGAState * s)
|
static int cirrus_bitblt_videotocpu(CirrusVGAState * s)
|
||||||
{
|
{
|
||||||
/* XXX */
|
/* XXX */
|
||||||
#ifdef DEBUG_BITBLT
|
qemu_log_mask(LOG_UNIMP,
|
||||||
printf("cirrus: bitblt (video to cpu) is not implemented yet\n");
|
"cirrus: bitblt (video to cpu) is not implemented\n");
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -989,9 +989,8 @@ static void cirrus_bitblt_start(CirrusVGAState * s)
|
|||||||
cirrus_blt_mode & (CIRRUS_BLTMODE_MEMSYSSRC |
|
cirrus_blt_mode & (CIRRUS_BLTMODE_MEMSYSSRC |
|
||||||
CIRRUS_BLTMODE_MEMSYSDEST))
|
CIRRUS_BLTMODE_MEMSYSDEST))
|
||||||
== (CIRRUS_BLTMODE_MEMSYSSRC | CIRRUS_BLTMODE_MEMSYSDEST)) {
|
== (CIRRUS_BLTMODE_MEMSYSSRC | CIRRUS_BLTMODE_MEMSYSDEST)) {
|
||||||
#ifdef DEBUG_BITBLT
|
qemu_log_mask(LOG_UNIMP,
|
||||||
printf("cirrus: bitblt - memory-to-memory copy is requested\n");
|
"cirrus: bitblt - memory-to-memory copy requested\n");
|
||||||
#endif
|
|
||||||
goto bitblt_ignore;
|
goto bitblt_ignore;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2412,6 +2411,9 @@ static uint64_t cirrus_linear_bitblt_read(void *opaque,
|
|||||||
|
|
||||||
/* XXX handle bitblt */
|
/* XXX handle bitblt */
|
||||||
(void)s;
|
(void)s;
|
||||||
|
qemu_log_mask(LOG_UNIMP,
|
||||||
|
"cirrus: linear bitblt is not implemented\n");
|
||||||
|
|
||||||
return 0xff;
|
return 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user