]> git.proxmox.com Git - qemu.git/commitdiff
qxl: add dev id to guest prints
authorAlon Levy <alevy@redhat.com>
Wed, 29 Jun 2011 11:57:15 +0000 (13:57 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 4 Jul 2011 13:35:12 +0000 (15:35 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/qxl.c

index 3722f55ce2693b136fb2c4c4abd587e2a373f0e3..d55b68d872baee84cbcd4f3d504c0d65571c07de 100644 (file)
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -985,7 +985,8 @@ static void ioport_write(void *opaque, uint32_t addr, uint32_t val)
         break;
     case QXL_IO_LOG:
         if (d->guestdebug) {
-            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;
     case QXL_IO_RESET: