From patchwork Thu Sep 7 10:50:01 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: 720597 Delivered-To: patch@linaro.org Received: by 2002:adf:eec5:0:b0:31d:da82:a3b4 with SMTP id a5csp163270wrp; Thu, 7 Sep 2023 03:51:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFEW7DyMTNzCYME7uYvqAK6f90gDnrB2V104jUbdIw2gKcLs3pFOTMQphbUH0cloO38tSwS X-Received: by 2002:ac8:578d:0:b0:410:a088:38f5 with SMTP id v13-20020ac8578d000000b00410a08838f5mr21834953qta.4.1694083886659; Thu, 07 Sep 2023 03:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694083886; cv=none; d=google.com; s=arc-20160816; b=j6asJ4wOUJhIkOC+heicnowWD5G+HfwngNlE0qjQBoFeaWX3IR5aXS+RRdNwV03ufG UA0gVZt77aL0EO4BaYMzQ5XQOrK7c+qmkXdkK+eJlGJLOT1pCwwC7fHgxc8rAnOLKW1J VKEPZxVqX9UUX1YE8d9OFDa8nJ0qGnWIFnpdkPsbilnC5wbFwZQR7E8Z9+vvhYJTF0So wAM8s/68P6ypynXlSc+WdsK0uXOBX1oJ792wJWUYIgqSm6qbUuxNWxSIAiaxUmRh7I+T am2e0E68AecjSkz++tmyVrhKgOLvMtD5lNyI+B+XOPVaqxR9DbdslEFUkC/pL+ZjhN0l GQXw== 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=qR76MJysRFRlkGpkSxfycYOt+ElbLTNXgKJufTxw2AU=; fh=BW8kVGHgEV8gn3zw8WoObUnBXsqPghOK4kNDCIpquMI=; b=0JarNRXfeFVpp0Uezw0v6Leen+DNeVnZXkSA5YVu/149R3RpHJH67G4ghRTCSrA6fH LUU9ZOPAmfrcUDYq7JAOcAtVrWVEjEVLIbuItXlWe5TOCj6OyJ1xW6pLKk07Hq4ykgo1 g58eyJ4T33l0TzQho670gt+O+5vt2dwluurAKO3zxYCmmODfCSMIJha48hBtvbE/PvAl GVDFlc9ccmQ2ZHiWdTQ7t/a8i8mdrPS5XxoNby09QilTqqd2r3JyrdAH5ZWIqcrX9QDH RXNL1PmdJXjCOJTTRZh9OIiLeE7bBiuMB9LTsOMWvXP0T246rzqt/43UIZ4a21+0PhPq xGwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gulcJRA7; 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 x18-20020ac85f12000000b00410993e39e8si10978776qta.260.2023.09.07.03.51.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Sep 2023 03:51:26 -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=gulcJRA7; 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 1qeCae-0008VK-8q; Thu, 07 Sep 2023 06:50:24 -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 1qeCac-0008TR-KB for qemu-devel@nongnu.org; Thu, 07 Sep 2023 06:50:22 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qeCaa-0004kd-66 for qemu-devel@nongnu.org; Thu, 07 Sep 2023 06:50:22 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-401c90ed2ecso9272665e9.0 for ; Thu, 07 Sep 2023 03:50:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694083818; x=1694688618; 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=qR76MJysRFRlkGpkSxfycYOt+ElbLTNXgKJufTxw2AU=; b=gulcJRA76m7pJodcyzudwxUwmifekV+Z+Nx6U3MT0Llie2MDlOVo+W8ucQg1M3Mov1 eOtYNZXpUzmT3nJbjXqYbi5gRMHo04utZezVms0TwJnwKaDmlGZJwbMMC0gcnEYLms5p 1WDVlsYdk9geKQieKCcJi4slvhis0z9Zbv1brTwJe/WtbWRx1ShSNoLZbYPw2KGY7Srg vb6u6hbfGJgN0M7dzR5mQP1p0HnnSVrcXSarL0Cn7sE641JoK0u3Y6610p/uEwogOqRq WpyE1FdF/T5ya34nLhFfVJi9v76xA2Yk6sHpPwlx38Y9HaCXejVs32CSm6LE881uytc5 +6Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694083818; x=1694688618; 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=qR76MJysRFRlkGpkSxfycYOt+ElbLTNXgKJufTxw2AU=; b=ksyXzRsCWNepeJRawuqlCLqMo8Q9teikArhD2eB34ojWQ34kxt0KbMyERbHQ2wn/xf Da3OY3yrJJ54PCMbRBwQctqa7pf2h1eiGu+B5kl0gA3+2z4Qo6K5ME//51XlN7zgZwSa hc5rTBikgibcWM6AEJ2YsHd+gpQiRKKFK6lslITknoPH5SxD+6gdMt23hlB9rlf+K3s8 68EM3kyiTLcAKQlQ7+3sikCOd9HNpnBXJN4xN/0aa2II/5K7IjETAjlDL0G5meauKdyh K/NdkW5SrzMDG3BdvzJqWabuS5OV2rhEZV11D6u+kDRU28WnL8nmHfixqi8dxPg6mF/h r+4w== X-Gm-Message-State: AOJu0Yw1thU4TqX7dyLjFU4TTamsxdBTDGOgYWH/yIRITSqdGohbVh3R FZZHVynI4vn0EjTsEbamOWU6r6IX7Itw0DAoVJU= X-Received: by 2002:a05:600c:204:b0:401:be77:9a50 with SMTP id 4-20020a05600c020400b00401be779a50mr4312229wmi.8.1694083818635; Thu, 07 Sep 2023 03:50:18 -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 23-20020a05600c231700b003fed4fa0c19sm2191436wmo.5.2023.09.07.03.50.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 07 Sep 2023 03:50:18 -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 2/5] contrib/plugins/drcov: Fix string format Date: Thu, 7 Sep 2023 12:50:01 +0200 Message-ID: <20230907105004.88600-3-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::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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/drcov.c:52:13: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] start_code, end_code, entry, path); ^~~~~~~~~~ plugins/drcov.c:52:25: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] start_code, end_code, entry, path); ^~~~~~~~ plugins/drcov.c:52:35: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] start_code, end_code, entry, path); ^~~~~ Signed-off-by: Philippe Mathieu-Daudé --- contrib/plugins/drcov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/plugins/drcov.c b/contrib/plugins/drcov.c index 686ae0a537..5edc94dcaf 100644 --- a/contrib/plugins/drcov.c +++ b/contrib/plugins/drcov.c @@ -48,7 +48,7 @@ static void printf_header(unsigned long count) uint64_t start_code = qemu_plugin_start_code(); uint64_t end_code = qemu_plugin_end_code(); uint64_t entry = qemu_plugin_entry_code(); - fprintf(fp, "0, 0x%lx, 0x%lx, 0x%lx, %s\n", + fprintf(fp, "0, 0x%" PRIx64 ", 0x%" PRIx64 ", 0x%" PRIx64 ", %s\n", start_code, end_code, entry, path); fprintf(fp, "BB Table: %ld bbs\n", count); }