From patchwork Mon Dec 31 19:45:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 208893 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 547B32C00B9 for ; Tue, 1 Jan 2013 06:45:35 +1100 (EST) Received: from localhost ([::1]:44941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TplIj-0002G3-J0 for incoming@patchwork.ozlabs.org; Mon, 31 Dec 2012 14:45:33 -0500 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 Received: from localhost.localdomain (unknown [78.238.229.36]) by smtp6-g21.free.fr (Postfix) with ESMTP id 039EA82264; Mon, 31 Dec 2012 20:45:21 +0100 (CET) From: Laurent Vivier To: qemu-devel@nongnu.org Date: Mon, 31 Dec 2012 20:45:06 +0100 Message-Id: <1356983106-12644-1-git-send-email-laurent@vivier.eu> X-Mailer: git-send-email 1.7.10.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:e0c:1:1599::15 Cc: Riku Voipio , Laurent Vivier Subject: [Qemu-devel] [PATCH] linux-user: correct print_timeval() swap tv_sec and tv_usec X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Peter Maydell --- 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));