diff options
Diffstat (limited to 'hw/qxl.c')
-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; |