From patchwork Thu Sep 7 10:50:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 720598 Delivered-To: patch@linaro.org Received: by 2002:adf:eec5:0:b0:31d:da82:a3b4 with SMTP id a5csp163403wrp; Thu, 7 Sep 2023 03:51:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHqOsK7yIrhzg4U3php4K+dPsoOtcHpLj46OZ6DrKPTKH3B+YLOdE1odMovypbW3LmQpnXU X-Received: by 2002:a05:620a:248a:b0:76e:eeaa:a079 with SMTP id i10-20020a05620a248a00b0076eeeaaa079mr22148723qkn.10.1694083903787; Thu, 07 Sep 2023 03:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694083903; cv=none; d=google.com; s=arc-20160816; b=bqECTtSQ0DLV0kMqsuVcI9kIVhHuCl3eRFp16eismNvikC01txjJHPXHTQyAwko4dE Uf+DyXu+P8JVn6YnYvcF67yEs4mQ5EW5iuFfP4HfpUlxN1lrIjyh8M5SEk0jTkeUT1Oj TnkKvJSkHCNb5B4G8kuRbO+QajpVq5NzsUiuanSFM/BNIAkUe4NsfkNZ5Gw3xFocNEjH eLud4XL9+o8SS2M4wc0YIgAiArO1zbp/iFOVhKyhB3XTWjrT88MuidkvuoKKfmwNNejF 1IQ03bjQyPcEAFHnq7EbzivU9GTP9R09OGJSL0R9YpY09JbkuTpE+GP+jQrzxR43/r42 Q0BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EGcUdcCLBUtbOEaXKDnL3F02Ox1clS60PlAXYhCrD+c=; fh=BW8kVGHgEV8gn3zw8WoObUnBXsqPghOK4kNDCIpquMI=; b=gGhtj1ES5KiHw3yoJkOa2AISlC8RccdFhGikSGLRU1g0/awPSIqQGlSUR//3TEDPTP PDmMXk1DLlURvV94fd0JLqrtJcyj9P5KGY6CqdYLVkvMFG7w1A9FQ/jk8vZqOr3hG5vc ddc4tPjU7X2+tEFUDrzexpVFbHYmQpLfiew4QJoDNYsavg6GsDIaPf4AKshRCLS4ZZCP 6aqHzcK01+ZkiipXDIYXuzKvtGy1sL6ZazcXlDa3nti34F70zp3ow2gCAsEy3k+Rqbca Nk5KGEfNsdAtA1znaTwc3JHTe1jFJ6fGHSnrqD9xxDKsAA7+3kwA6nNO8xZXeJGTFv8J ZXAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WB+XGbeH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bk26-20020a05620a1a1a00b007683e40b553si11895345qkb.440.2023.09.07.03.51.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Sep 2023 03:51:43 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WB+XGbeH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeCaj-00005A-MS; Thu, 07 Sep 2023 06:50:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qeCai-0008WR-LG for qemu-devel@nongnu.org; Thu, 07 Sep 2023 06:50:28 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qeCaf-0004lM-W4 for qemu-devel@nongnu.org; Thu, 07 Sep 2023 06:50:27 -0400 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-401da71b7c5so9170285e9.2 for ; Thu, 07 Sep 2023 03:50:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694083824; x=1694688624; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EGcUdcCLBUtbOEaXKDnL3F02Ox1clS60PlAXYhCrD+c=; b=WB+XGbeHp+W5KAyFB3kw4vthhkDKqJBQcVyZKqoXcGJrKr955AhyVrSbAGV+U0XcV0 Fm2S7D8QpUZU8aDLslMftlMzD/KP1hfd0n4f0tWtP/MCl3ub7K9Keu0FYLTloJBSWadH zfbSpfCpNRJldMUOBpJxbhYhqFJmJ6tSsHtWlPwse6ekoea8w9bIVzf97kt2lXtt6YFk VPole3v2PFMIgs7VuGlivlk2nfM9jXHgeBLeBDHr7f89qIU55nKQa4FKa4xY4lRk7UX+ 8flT45S3Jf4s78uiekedTTyGjRbvcvQNsusUWR7NfQRFK7Nmlev8JFjX21r8eLFDmz3A 3zVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694083824; x=1694688624; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EGcUdcCLBUtbOEaXKDnL3F02Ox1clS60PlAXYhCrD+c=; b=Oad3ILRi8nUxdWAPemMyP/YNZVwA4jYw96U6gxiF47cTGKvsptqQXAYWYI3LocFQvW W6Ykstb15YKI4bmawREI0QvrrhiUGrwxx2N2Xm5WiOxvv/vC8hQEa1BDegW+tSCO62pF eQA8Drb378wGg492hS35ZmghqowV/jiDxIaOPDa1q4Q30U/Sfo1sRrtIAL35Abckaii6 fTnnJhi9PSAVhPQVJ3vEYpkaVrWDhB8BaK+jr8zHnAaOMJMj2WmrSCb/PiUySjq94x/N mAvQw8JKlZxPa8ZTuH2pN4cSJ94LKGJZFESUn44YjYlarOpNq33rVVQiSNXBmIIjZpYs XF3A== X-Gm-Message-State: AOJu0YyMNN1ymXASaNWb3tjow0Xja3CCd9ii9sIZIP/DpGZscN/YCbkI 56oK4CeoEoy5/1t4RbxpyK7OFadK39H0hdZE5kQ= X-Received: by 2002:a05:600c:45c8:b0:402:ee67:45d1 with SMTP id s8-20020a05600c45c800b00402ee6745d1mr928521wmo.36.1694083824206; Thu, 07 Sep 2023 03:50:24 -0700 (PDT) Received: from m1x-phil.lan (176-131-222-226.abo.bbox.fr. [176.131.222.226]) by smtp.gmail.com with ESMTPSA id y25-20020a7bcd99000000b0040210a27e29sm2141832wmj.32.2023.09.07.03.50.23 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 07 Sep 2023 03:50:23 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Alexandre Iooss , Paolo Bonzini , Mahmoud Mandour , Thomas Huth , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= Subject: [PATCH 3/5] contrib/plugins/howvec: Fix string format Date: Thu, 7 Sep 2023 12:50:02 +0200 Message-ID: <20230907105004.88600-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230907105004.88600-1-philmd@linaro.org> References: <20230907105004.88600-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=philmd@linaro.org; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This fixes on Darwin: plugins/howvec.c:186:40: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] class->count); ^~~~~~~~~~~~ plugins/howvec.c:213:36: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] rec->count, ^~~~~~~~~~ Signed-off-by: Philippe Mathieu-Daudé --- contrib/plugins/howvec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/plugins/howvec.c b/contrib/plugins/howvec.c index 0ed01ea931..644a7856bb 100644 --- a/contrib/plugins/howvec.c +++ b/contrib/plugins/howvec.c @@ -181,7 +181,8 @@ static void plugin_exit(qemu_plugin_id_t id, void *p) switch (class->what) { case COUNT_CLASS: if (class->count || verbose) { - g_string_append_printf(report, "Class: %-24s\t(%ld hits)\n", + g_string_append_printf(report, + "Class: %-24s\t(%" PRId64 " hits)\n", class->class, class->count); } @@ -208,7 +209,8 @@ static void plugin_exit(qemu_plugin_id_t id, void *p) i++, counts = g_list_next(counts)) { InsnExecCount *rec = (InsnExecCount *) counts->data; g_string_append_printf(report, - "Instr: %-24s\t(%ld hits)\t(op=0x%08x/%s)\n", + "Instr: %-24s\t(%" PRId64 " hits)" + "\t(op=0x%08x/%s)\n", rec->insn, rec->count, rec->opcode,