mirror of
https://github.com/xemu-project/xemu.git
synced 2026-11-17 11:14:13 +01:00
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>
This commit is contained in:
1 parent
79dd77de12
commit
910ee4e5f4
1 file changed
+1
-1
+1
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user