From nobody Mon Feb 9 23:42:34 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1567923472; cv=none; d=zoho.com; s=zohoarc; b=EdtXPGDpTJc5mC4gkOA4SQm/vi5d64OH3qYx384Wfua7DvywKTYUx3C7KmqJH3gx+V7E1KFIscOjwHPwGzYP6DpVnlTQz7a3pvTBAPHlKHK8FmBgbpvW4UHKYxk1eTMEs3tIaEyC/cGm92PZFdY+OmPsiRJJPDUQE3IAE9mcufk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567923472; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=gvbw57hiwlFryOdHGOwYOwKt/bEEEiHivu3sJ0Hxopw=; b=jyy2ncvvfyTX1IMqH3PnlMvEveWCrwgG4J1Osja62E0L2fe+9nWydi8OkWqnIVLfM2fDvZoQMgT4wIzRfpJrdBkPxQgnZawW4I73ziguM1nbVa/fsravLPs0Z66n29KT03pyqCHFSrPjT1/T7U6HJSJskpU82id4oZhhRMlyjZc= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 156792347265393.10720998422664; Sat, 7 Sep 2019 23:17:52 -0700 (PDT) Received: from localhost ([::1]:47164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6qW9-0004U7-0V for importer@patchew.org; Sun, 08 Sep 2019 02:17:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41793) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6qUI-0002me-FQ for qemu-devel@nongnu.org; Sun, 08 Sep 2019 02:15:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i6qUH-0002Qy-At for qemu-devel@nongnu.org; Sun, 08 Sep 2019 02:15:50 -0400 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:50388) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i6qUH-0002Pa-2o for qemu-devel@nongnu.org; Sun, 08 Sep 2019 02:15:49 -0400 Received: by mail-wm1-x341.google.com with SMTP id c10so10339902wmc.0 for ; Sat, 07 Sep 2019 23:15:49 -0700 (PDT) Received: from localhost.localdomain (251.red-88-10-102.dynamicip.rima-tde.net. [88.10.102.251]) by smtp.gmail.com with ESMTPSA id g201sm15616552wmg.34.2019.09.07.23.15.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2019 23:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gvbw57hiwlFryOdHGOwYOwKt/bEEEiHivu3sJ0Hxopw=; b=FsKg+Hhfk9Acx5bx98OBBJNNKmF5Vm3lcggSlwFvXm26IYYe2ttQsjfSGhkdPyKOw2 s9l4o9w9dK+QlEP09XQRqefcEKjH2ENTPFKeOoX007GPYebD80oylE2ld9F+n3HEqoGR wstANu+y/Ya225zBa7EKQGevNAxiLwqvu4lZf8Xx89rhOM28/3R/wMXSpnM+s57ybpB4 zAoizS93dp6rcz4L6nVyu9l3vKkEWhiO+64iYeh6JFhFDZoO2zyEy7T3YobDR5c0QGh1 G+p5GRyGFz29SQ+UKcbXqcRsPmmsW1jBrxHZP6Ts0/7R5dF0Il12ujE8zH8OsT2obZnk w5LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=gvbw57hiwlFryOdHGOwYOwKt/bEEEiHivu3sJ0Hxopw=; b=VVejevvL6Tk2VWySy9y0ngX2lGrfe4LrEixNJ9BHFgeeFj9ukfV7bB8jrYtKZTLJ2S 4wlBBpQynAtEpqR7SXvGAHydf54tgJyY7wD2IudkWK5j629ugh4MfmWYGOse/JctNau+ AMx+nUTw/K/m/2KUXbU2wWvGAUZ81jSJe8zckNZAJTU2psRKvad2fRukQQh1X2cb+xYs UpORFjbj3dWIMcJRsjMmmrNnDKnuyV4gipdchkpJpA/hxl6nCnROTqtmrCRWzo5XygNW EVcNdxc/toxNZdtCturrVIVOvSD6rZGTc5T6OFk55gHprD0lGyK2KNxbz1rgOIZE7mHl Bmzg== X-Gm-Message-State: APjAAAXkBmIk29F3xnd1HfEUWL3uJqhhLcnKYjjpVyNjf++XnMOQZ2Xj OHx7pINonFnsiUFkONvSWC/r1SLb X-Google-Smtp-Source: APXvYqy9wzWhZeehhEligxEhK7Ml+4Clhbz4jXngT3R6rU2xvllg8oUog1skvYeC/SoKnMolPjZ2Ag== X-Received: by 2002:a1c:7407:: with SMTP id p7mr14634968wmc.31.1567923347848; Sat, 07 Sep 2019 23:15:47 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Sun, 8 Sep 2019 08:15:37 +0200 Message-Id: <20190908061543.25136-3-f4bug@amsat.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190908061543.25136-1-f4bug@amsat.org> References: <20190908061543.25136-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 Subject: [Qemu-devel] [PATCH v6 2/8] linux-user/strace: Add print_timezone() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Guido=20G=C3=BCnther?= , Riku Voipio , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Suggested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- checkpatch error: ERROR: storage class should be at the beginning of the declaration --- linux-user/strace.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/linux-user/strace.c b/linux-user/strace.c index f326c357a2..5ee9d62c25 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -63,6 +63,7 @@ UNUSED static void print_string(abi_long, int); UNUSED static void print_buf(abi_long addr, abi_long len, int last); UNUSED static void print_raw_param(const char *, abi_long, int); UNUSED static void print_timeval(abi_ulong, int); +UNUSED static void print_timezone(abi_ulong, int); UNUSED static void print_number(abi_long, int); UNUSED static void print_signal(abi_ulong, int); UNUSED static void print_sockaddr(abi_ulong addr, abi_long addrlen); @@ -1254,6 +1255,26 @@ print_timeval(abi_ulong tv_addr, int last) gemu_log("NULL%s", get_comma(last)); } =20 +static void +print_timezone(abi_ulong tz_addr, int last) +{ + if (tz_addr) { + struct target_timezone *tz; + + tz =3D lock_user(VERIFY_READ, tz_addr, sizeof(*tz), 1); + if (!tz) { + print_pointer(tz_addr, last); + return; + } + gemu_log("{" TARGET_ABI_FMT_ld "," TARGET_ABI_FMT_ld "}%s", + tswapal(tz->tz_minuteswest), tswapal(tz->tz_dsttime), + get_comma(last)); + unlock_user(tz, tz_addr, 0); + } else { + gemu_log("NULL%s", get_comma(last)); + } +} + #undef UNUSED =20 #ifdef TARGET_NR_accept --=20 2.20.1