From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B0506A04B1; Mon, 5 Oct 2020 20:57:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0169C1B222; Mon, 5 Oct 2020 20:57:51 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 90003160; Mon, 5 Oct 2020 20:57:48 +0200 (CEST) IronPort-SDR: dQrXMOhjGGHn+k8/BKpGg3Rfs12V88KmihbcPNZ7Erpcl3eAIe8CRiwQ8mBzOnoMzzO2zd/qWV MSZ/yZ2NpAYQ== X-IronPort-AV: E=McAfee;i="6000,8403,9765"; a="151136646" X-IronPort-AV: E=Sophos;i="5.77,340,1596524400"; d="scan'208";a="151136646" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2020 11:57:39 -0700 IronPort-SDR: G4GDQCRPb6buBjoOqM7OhEG8wKnak0rzlZtMosoAutx1ZYwl+9TJwJLUYHnsQWCsTn6w36ERXe jhhdu+pjD8xQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,340,1596524400"; d="scan'208";a="314655330" Received: from silpixa00399752.ir.intel.com (HELO silpixa00399752.ger.corp.intel.com) ([10.237.222.180]) by orsmga006.jf.intel.com with ESMTP; 05 Oct 2020 10:02:08 -0700 From: Ferruh Yigit <ferruh.yigit@intel.com> To: David Hunt <david.hunt@intel.com>, Lee Daly <lee.daly@intel.com>, Marcin Hajkowski <marcinx.hajkowski@intel.com> Cc: dev@dpdk.org, stable@dpdk.org, David Marchand <david.marchand@redhat.com> Date: Mon, 5 Oct 2020 18:02:01 +0100 Message-Id: <20201005170201.431125-1-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] examples/vm_power: fix 32-bit build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> Compiler version: gcc 10.2.1 "cc (GCC) 10.2.1 20200723 (Red Hat 10.2.1-1)" Build error: ../examples/vm_power_manager/guest_cli/vm_power_cli_guest.c:346:23: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=] 346 | cmdline_printf(cl, "Capabilities of [%d] vcore are:" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ...... 349 | pkt_caps_list.turbo[i], | ~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long long unsigned int} Fixes: 07525d1a047a ("examples/vm_power: send capabilities request from guest") Cc: stable@dpdk.org Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> --- Cc: David Marchand <david.marchand@redhat.com> Cc: David Hunt <david.hunt@intel.com> Fixed patch is not new, not sure why getting the error now but was not getting it before, do you have any clue? Or is the CI having this error? --- examples/vm_power_manager/guest_cli/vm_power_cli_guest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c index 96c1a1ff69..58029f8fb9 100644 --- a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c +++ b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c @@ -344,13 +344,13 @@ cmd_query_caps_list_parsed(void *parsed_result, unsigned int i; for (i = 0; i < pkt_caps_list.num_vcpu; ++i) cmdline_printf(cl, "Capabilities of [%d] vcore are:" - " turbo possibility: %ld, is priority core: %ld.\n", + " turbo possibility: %"PRId64", is priority core: %"PRId64".\n", i, pkt_caps_list.turbo[i], pkt_caps_list.priority[i]); } else { cmdline_printf(cl, "Capabilities of [%d] vcore are:" - " turbo possibility: %ld, is priority core: %ld.\n", + " turbo possibility: %"PRId64", is priority core: %"PRId64".\n", lcore_id, pkt_caps_list.turbo[lcore_id], pkt_caps_list.priority[lcore_id]); -- 2.26.2