qtest: fix 32-bit build

time_t appears to be an unsigned long so use %ld.

Reported-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Anthony Liguori 2012-03-30 12:53:54 -05:00
parent d2a16f74f2
commit 6b7cff76e0
1 changed files with 1 additions and 1 deletions

View File

@ -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