diff options
author | Alon Levy <alevy@redhat.com> | 2011-06-06 15:16:14 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-06-07 11:35:34 +0300 |
commit | de5d48907fe086473e09ba620f1ff1a2efdd4933 (patch) | |
tree | 8d2292dd570972db5444e12a64df00e7c7a370b1 | |
parent | 2d1605a1fed8fa912f0cd3e5cb4d1c8d9f3c8a92 (diff) |
qxl: add dev id to guest printsspice.v36.s3.v2
-rw-r--r-- | hw/qxl.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |