mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
qxl: make qxl_guest_bug take variable arguments
Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
2bce040057
commit
7635392ce6
2 changed files with 8 additions and 3 deletions
9
hw/qxl.c
9
hw/qxl.c
|
@ -125,13 +125,18 @@ static void qxl_reset_memslots(PCIQXLDevice *d);
|
|||
static void qxl_reset_surfaces(PCIQXLDevice *d);
|
||||
static void qxl_ring_set_dirty(PCIQXLDevice *qxl);
|
||||
|
||||
void qxl_guest_bug(PCIQXLDevice *qxl, const char *msg)
|
||||
void qxl_guest_bug(PCIQXLDevice *qxl, const char *msg, ...)
|
||||
{
|
||||
#if SPICE_INTERFACE_QXL_MINOR >= 1
|
||||
qxl_send_events(qxl, QXL_INTERRUPT_ERROR);
|
||||
#endif
|
||||
if (qxl->guestdebug) {
|
||||
fprintf(stderr, "qxl-%d: guest bug: %s\n", qxl->id, msg);
|
||||
va_list ap;
|
||||
va_start(ap, msg);
|
||||
fprintf(stderr, "qxl-%d: guest bug: ", qxl->id);
|
||||
vfprintf(stderr, msg, ap);
|
||||
fprintf(stderr, "\n");
|
||||
va_end(ap);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue