From nobody Tue Feb 10 21:40:31 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.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 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 152960147233843.552616494625454; Thu, 21 Jun 2018 10:17:52 -0700 (PDT) Received: from localhost ([::1]:56802 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fW3DT-0007wt-Gk for importer@patchew.org; Thu, 21 Jun 2018 13:17:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fW38z-0004fw-Jq for qemu-devel@nongnu.org; Thu, 21 Jun 2018 13:13:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fW38x-00021C-0u for qemu-devel@nongnu.org; Thu, 21 Jun 2018 13:13:13 -0400 Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]:39821) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fW38w-00020z-SK; Thu, 21 Jun 2018 13:13:10 -0400 Received: by mail-qt0-x229.google.com with SMTP id p23-v6so3518530qtn.6; Thu, 21 Jun 2018 10:13:10 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id t14-v6sm3166159qtp.65.2018.06.21.10.13.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 10:13:09 -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=KaKONEZCeP1O8NcsyOMN2P4LQq70QG0QhMhxmD+h9EY=; b=GrC1LVfMniV7xx9c09ZKtnBq2d15oVUdPsbe/EMaqKJC9a0OvsdcNqODOqYBSFTC4n oMDosAeeV10VcmvsG7eokEBz2jdeNKzfqLmHgZRWoNEDTy4tqJ7OFtLqqLQZcnCDLSwN 9F5Jpl14XRrxD0JzJhZN8Mn4R1bTsBnNy9ULXTDuSsithgPZEItZTvcMYl/qIIlljWvc FvjOBuewKSUEjJl+eRcPNe7Vf7r/hjMnxDCCBGU8NjVkt5Ca3NrmHi+P+BfH2L9AxYxp XP4k9ZGYxGqtC+SWBl8xuCBZfaGf0dVgjzSy9mk8pCIgCFXNBKNgpPZxeYmBmAq9x46c WZ3g== 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=KaKONEZCeP1O8NcsyOMN2P4LQq70QG0QhMhxmD+h9EY=; b=NZFe773Jy7nTSx9cQPlCuoTaBH94Gk6Nx0OZVOrzWegTa3RFYZAMxNLQAlz8HYyTZH adByNFqYXg1tzoADX5D+wMaOIl5AIhqKz+uibT3pHjutOacG4kwsxLYY0A/Z3uWqDc2E qhDZzXLDBtdSTpxOMGPFq0z7Y/dXrC+QHtH/PayH7Z7XuR3nzTsOm88BjS3MswDTI8HA Q3rQdbWldvFUO0jyaee26ACGBxCKQ2aq01+JGS3NnPvES3fVfhpi+PJzyvxtdZYEJSpg XCBcKxgRWzv8okvgwLhwykkZ/+WIJSzWyXIYHR6Uh85cR6VrgSdYBoHKXP58BgMbA9ZT L94g== X-Gm-Message-State: APt69E3Ji92RIUrEQhltoklDxgAfupNutv6ZXH3bCXV/hlUFa572zUhh M56omF67JtWf+SVN/bOlFwM= X-Google-Smtp-Source: ADUXVKLWYQQTfjyihHsCz/VXv0jgaDzUZOuUHq3LjEqDYf+j5sdO/ZWRCvAD6GTu2KGJRQmJ9/73IQ== X-Received: by 2002:aed:22cc:: with SMTP id q12-v6mr23381171qtc.226.1529601190259; Thu, 21 Jun 2018 10:13:10 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Stefan Hajnoczi Date: Thu, 21 Jun 2018 14:12:47 -0300 Message-Id: <20180621171257.14897-2-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0.rc2 In-Reply-To: <20180621171257.14897-1-f4bug@amsat.org> References: <20180621171257.14897-1-f4bug@amsat.org> MIME-Version: 1.0 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: 2607:f8b0:400d:c0d::229 Subject: [Qemu-devel] [PATCH 01/11] trace: Fix format string for the struct timeval members casted to size_t X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 This fixes when using GCC with -Wformat-signedness: migration/trace.h: In function =E2=80=98_nocheck__trace_dirty_bitmap_lo= ad_success=E2=80=99: migration/trace.h:6368:24: error: format =E2=80=98%zd=E2=80=99 expects = argument of type =E2=80=98signed size_t=E2=80=99, but argument 3 has type = =E2=80=98long unsigned int=E2=80=99 [-Werror=3Dformat=3D] qemu_log("%d@%zd.%06zd:dirty_bitmap_load_success " "" "\n", ~~^ %ld migration/trace.h:6370:18: (size_t)_now.tv_sec, (size_t)_now.tv_usec ~~~~~~~~~~~~~~~~~~~ migration/trace.h:6368:30: error: format =E2=80=98%zd=E2=80=99 expects = argument of type =E2=80=98signed size_t=E2=80=99, but argument 4 has type = =E2=80=98long unsigned int=E2=80=99 [-Werror=3Dformat=3D] qemu_log("%d@%zd.%06zd:dirty_bitmap_load_success " "" "\n", ~~~~^ %06ld migration/trace.h:6370:39: (size_t)_now.tv_sec, (size_t)_now.tv_usec ~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- scripts/tracetool/backend/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tracetool/backend/log.py b/scripts/tracetool/backend/l= og.py index 78933d03ad..6751f41bc5 100644 --- a/scripts/tracetool/backend/log.py +++ b/scripts/tracetool/backend/log.py @@ -38,7 +38,7 @@ def generate_h(event, group): out(' if (%(cond)s && qemu_loglevel_mask(LOG_TRACE)) {', ' struct timeval _now;', ' gettimeofday(&_now, NULL);', - ' qemu_log("%%d@%%zd.%%06zd:%(name)s " %(fmt)s "\\n",', + ' qemu_log("%%d@%%zu.%%06zu:%(name)s " %(fmt)s "\\n",', ' getpid(),', ' (size_t)_now.tv_sec, (size_t)_now.tv_usec', ' %(argnames)s);', --=20 2.18.0.rc2