From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TplId-0002Fy-NU for qemu-devel@nongnu.org; Mon, 31 Dec 2012 14:45:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TplIc-0005u6-T0 for qemu-devel@nongnu.org; Mon, 31 Dec 2012 14:45:27 -0500 Received: from smtp6-g21.free.fr ([2a01:e0c:1:1599::15]:60554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TplIc-0005tx-Dv for qemu-devel@nongnu.org; Mon, 31 Dec 2012 14:45:26 -0500 From: Laurent Vivier Date: Mon, 31 Dec 2012 20:45:06 +0100 Message-Id: <1356983106-12644-1-git-send-email-laurent@vivier.eu> Subject: [Qemu-devel] [PATCH] linux-user: correct print_timeval() swap tv_sec and tv_usec List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio , Laurent Vivier From: Laurent Vivier Signed-off-by: Laurent Vivier --- linux-user/strace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 6ec90e8..4e91a6e 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)); -- 1.7.10.4