Patchwork [6/9] qxl: add dev id to guest prints

login
register
mail settings
Submitter Gerd Hoffmann
Date July 4, 2011, 3:14 p.m.
Message ID <1309792455-26825-7-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/103127/
State New
Headers show

Comments

Gerd Hoffmann - July 4, 2011, 3:14 p.m.
From: Alon Levy <alevy@redhat.com>

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/qxl.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/qxl.c b/hw/qxl.c
index 3722f55..d55b68d 100644
--- 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: