summaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorLaurent Vivier <Laurent@Vivier.EU>2012-12-31 09:45:06 +0000
committerLaurent Vivier <laurent@vivier.eu>2013-01-30 12:13:21 +0100
commit910ee4e5f4a1df5b1bd144dfca1ae466e2a86a78 (patch)
tree7b00cc8945a7b2ac915a83b499aba5b680eea4fe /linux-user
parent79dd77de124c47263f54e5f686273487e0016a8f (diff)
downloadqemu-910ee4e5f4a1df5b1bd144dfca1ae466e2a86a78.tar.gz
qemu-910ee4e5f4a1df5b1bd144dfca1ae466e2a86a78.tar.bz2
qemu-910ee4e5f4a1df5b1bd144dfca1ae466e2a86a78.zip
linux-user: correct print_timeval() swap tv_sec and tv_usec
Signed-off-by: Laurent Vivier <Laurent@Vivier.EU> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/strace.c2
1 files changed, 1 insertions, 1 deletions
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));