From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 067AD3772 for ; Wed, 22 Jul 2015 10:06:50 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 22 Jul 2015 01:06:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,522,1432623600"; d="scan'208";a="752072590" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 22 Jul 2015 01:06:49 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t6M86mGa032419 for ; Wed, 22 Jul 2015 09:06:48 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id t6M86mH7016951 for ; Wed, 22 Jul 2015 09:06:48 +0100 Received: (from pdelarax@localhost) by sivswdev02.ir.intel.com with id t6M86mRA016947 for dev@dpdk.org; Wed, 22 Jul 2015 09:06:48 +0100 From: Pablo de Lara To: dev@dpdk.org Date: Wed, 22 Jul 2015 09:06:48 +0100 Message-Id: <1437552408-16917-1-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1437547118-28633-1-git-send-email-pablo.de.lara.guarch@intel.com> References: <1437547118-28633-1-git-send-email-pablo.de.lara.guarch@intel.com> Subject: [dpdk-dev] [PATCH v2] testpmd: fix wrong variable type in ieee1588fwd for 32 bits X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 08:06:51 -0000 In ieee1588fwd.c, timestamp.tv_sec is a time_t variable, which is a long int, but it was being printed with PRIu64, causing an issue on 32 bits. Signed-off-by: Pablo de Lara --- Changes in v2: - Corrected wrong commit message app/test-pmd/ieee1588fwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/ieee1588fwd.c b/app/test-pmd/ieee1588fwd.c index 069ee2e..b1a301b 100644 --- a/app/test-pmd/ieee1588fwd.c +++ b/app/test-pmd/ieee1588fwd.c @@ -89,7 +89,7 @@ port_ieee1588_rx_timestamp_check(portid_t pi, uint32_t index) (unsigned) pi); return; } - printf("Port %u RX timestamp value %"PRIu64"\n", + printf("Port %u RX timestamp value %lu\n", (unsigned) pi, timestamp.tv_sec); } @@ -112,7 +112,7 @@ port_ieee1588_tx_timestamp_check(portid_t pi) (unsigned) pi, (unsigned) MAX_TX_TMST_WAIT_MICROSECS); return; } - printf("Port %u TX timestamp value %"PRIu64" validated after " + printf("Port %u TX timestamp value %lu validated after " "%u micro-second%s\n", (unsigned) pi, timestamp.tv_sec, wait_us, (wait_us == 1) ? "" : "s"); -- 2.4.2