]> Git Repo - qemu.git/blobdiff - hw/qxl-logger.c
pseries: Under kvm use guest cpu = host cpu by default
[qemu.git] / hw / qxl-logger.c
index 76f43e646c12ebb594ec3c994ae66c679cfc281d..367aad19f443e472c8655ef7e6615b80a915f0f8 100644 (file)
@@ -19,6 +19,7 @@
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "qemu-timer.h"
 #include "qxl.h"
 
 static const char *qxl_type[] = {
@@ -223,7 +224,8 @@ void qxl_log_command(PCIQXLDevice *qxl, const char *ring, QXLCommandExt *ext)
     if (!qxl->cmdlog) {
         return;
     }
-    fprintf(stderr, "qxl-%d/%s:", qxl->id, ring);
+    fprintf(stderr, "%" PRId64 " qxl-%d/%s:", qemu_get_clock_ns(vm_clock),
+            qxl->id, ring);
     fprintf(stderr, " cmd @ 0x%" PRIx64 " %s%s", ext->cmd.data,
             qxl_name(qxl_type, ext->cmd.type),
             compat ? "(compat)" : "");
This page took 0.025783 seconds and 4 git commands to generate.