summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-06-06 15:16:14 +0300
committerAlon Levy <alevy@redhat.com>2011-06-07 11:35:34 +0300
commitde5d48907fe086473e09ba620f1ff1a2efdd4933 (patch)
tree8d2292dd570972db5444e12a64df00e7c7a370b1
parent2d1605a1fed8fa912f0cd3e5cb4d1c8d9f3c8a92 (diff)
qxl: add dev id to guest printsspice.v36.s3.v2
-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;