mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-23 10:01:59 -06: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:
parent
79dd77de12
commit
910ee4e5f4
1 changed files with 1 additions and 1 deletions
|
@ -682,7 +682,7 @@ print_timeval(abi_ulong tv_addr, int last)
|
||||||
if (!tv)
|
if (!tv)
|
||||||
return;
|
return;
|
||||||
gemu_log("{" TARGET_ABI_FMT_ld "," TARGET_ABI_FMT_ld "}%s",
|
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);
|
unlock_user(tv, tv_addr, 0);
|
||||||
} else
|
} else
|
||||||
gemu_log("NULL%s", get_comma(last));
|
gemu_log("NULL%s", get_comma(last));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue