Patchwork [v2] qxl: add dev id to guest prints

login
register
mail settings
Submitter Alon Levy
Date June 24, 2011, 1:02 p.m.
Message ID <1308920577-31569-9-git-send-email-alevy@redhat.com>
Download mbox | patch
Permalink /patch/101809/
State New
Headers show

Comments

Alon Levy - June 24, 2011, 1:02 p.m.
---
 hw/qxl.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/qxl.c b/hw/qxl.c
index 865e985..3d5c823 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -1055,7 +1055,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: