From patchwork Mon Oct 5 17:02:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ferruh Yigit X-Patchwork-Id: 79694 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.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 To: David Hunt , Lee Daly , Marcin Hajkowski Cc: dev@dpdk.org, stable@dpdk.org, David Marchand 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 Tested-by: David Marchand --- Cc: David Marchand Cc: David Hunt 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]);