提交 910ee4e5 编写于 作者: L Laurent Vivier 提交者: Laurent Vivier

linux-user: correct print_timeval() swap tv_sec and tv_usec

Signed-off-by: NLaurent Vivier <Laurent@Vivier.EU>
Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
上级 79dd77de
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册