summaryrefslogtreecommitdiff
path: root/hw/qxl.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/qxl.c')
-rw-r--r--hw/qxl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/qxl.c b/hw/qxl.c
index 14165f81d..b2f85cca0 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -992,11 +992,12 @@ static void ioport_write(void *opaque, uint32_t addr, uint32_t val)
d->ram->log_buf[QXL_LOG_BUF_SIZE - 1] = '\0';
if (d->guestdebug) {
if (d->debug_cs) {
- snprintf((char*)guest_debug_cs_buf, QXL_LOG_BUF_SIZE, "%ld %s",
- qemu_get_clock_ns(vm_clock), d->ram->log_buf);
+ snprintf((char*)guest_debug_cs_buf, QXL_LOG_BUF_SIZE, "-%d %ld %s",
+ d->id, qemu_get_clock_ns(vm_clock), d->ram->log_buf);
qemu_chr_write(d->debug_cs, guest_debug_cs_buf, strlen((char*)guest_debug_cs_buf));
} else {
- fprintf(stderr, "qxl/guest: %s", d->ram->log_buf);
+ fprintf(stderr, "qxl/guest-%d: %ld: %s", d->id,
+ qemu_get_clock_ns(vm_clock), d->ram->log_buf);
}
}
break;