summaryrefslogtreecommitdiffstats
path: root/hw/qxl-logger.c
diff options
context:
space:
mode:
authormalc2011-07-22 22:50:37 +0200
committermalc2011-07-22 22:50:37 +0200
commit670acc9bf21474b2a4456a3cd13323e48e35820d (patch)
tree81a794b007c8b94dacf593ef8e5eaea6e90dcdc0 /hw/qxl-logger.c
parentTCG/PPC: use stack for TCG temps (diff)
parentguest-agent: fix build with OpenBSD (diff)
downloadqemu-670acc9bf21474b2a4456a3cd13323e48e35820d.tar.gz
qemu-670acc9bf21474b2a4456a3cd13323e48e35820d.tar.xz
qemu-670acc9bf21474b2a4456a3cd13323e48e35820d.zip
Merge branch 'master' of git://git.qemu.org/qemu
Diffstat (limited to 'hw/qxl-logger.c')
-rw-r--r--hw/qxl-logger.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/qxl-logger.c b/hw/qxl-logger.c
index 76f43e646c..74cadba302 100644
--- a/hw/qxl-logger.c
+++ b/hw/qxl-logger.c
@@ -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, "%ld 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)" : "");