From: Alon Levy Date: Wed, 29 Jun 2011 11:57:13 +0000 (+0200) Subject: qxl-logger: add timestamp to command log X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~2711^2~28^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45ba997dde47968e70566d1095854b8bb09f4264;p=sdk%2Femulator%2Fqemu.git qxl-logger: add timestamp to command log Signed-off-by: Gerd Hoffmann --- 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 . */ +#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)" : "");