From: Anthony Liguori Date: Fri, 30 Mar 2012 17:53:54 +0000 (-0500) Subject: qtest: fix 32-bit build X-Git-Tag: v1.1-rc0~173 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b7cff76e0545b831542bbbdcf3fa2e4f260fbfe;p=thirdparty%2Fqemu.git qtest: fix 32-bit build time_t appears to be an unsigned long so use %ld. Reported-by: Stefan Weil Signed-off-by: Anthony Liguori --- diff --git a/qtest.c b/qtest.c index 53e2b7942c3..cd7186c39c7 100644 --- a/qtest.c +++ b/qtest.c @@ -34,7 +34,7 @@ static int irq_levels[MAX_IRQ]; static struct timeval start_time; static bool qtest_opened; -#define FMT_timeval "%" PRId64 ".%06" PRId64 +#define FMT_timeval "%ld.%06ld" /** * QTest Protocol