From 910ee4e5f4a1df5b1bd144dfca1ae466e2a86a78 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Mon, 31 Dec 2012 09:45:06 +0000 Subject: linux-user: correct print_timeval() swap tv_sec and tv_usec Signed-off-by: Laurent Vivier Reviewed-by: Peter Maydell --- linux-user/strace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux-user/strace.c') diff --git a/linux-user/strace.c b/linux-user/strace.c index 6ec90e8974..4e91a6eb9c 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -682,7 +682,7 @@ print_timeval(abi_ulong tv_addr, int last) if (!tv) return; gemu_log("{" TARGET_ABI_FMT_ld "," TARGET_ABI_FMT_ld "}%s", - tv->tv_sec, tv->tv_usec, get_comma(last)); + tswapal(tv->tv_sec), tswapal(tv->tv_usec), get_comma(last)); unlock_user(tv, tv_addr, 0); } else gemu_log("NULL%s", get_comma(last)); -- cgit v1.2.3