From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 700D65949 for ; Wed, 22 Jul 2015 08:38:41 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 21 Jul 2015 23:38:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,521,1432623600"; d="scan'208";a="610546080" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga003.jf.intel.com with ESMTP; 21 Jul 2015 23:38:40 -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 t6M6ccMM031628 for ; Wed, 22 Jul 2015 07:38:39 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id t6M6ccbQ028669 for ; Wed, 22 Jul 2015 07:38:38 +0100 Received: (from pdelarax@localhost) by sivswdev02.ir.intel.com with id t6M6ccvN028665 for dev@dpdk.org; Wed, 22 Jul 2015 07:38:38 +0100 From: Pablo de Lara To: dev@dpdk.org Date: Wed, 22 Jul 2015 07:38:38 +0100 Message-Id: <1437547118-28633-1-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] 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 06:38:41 -0000 In ieee1588fwd.c, timestamp.tv_sec is a size_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 --- 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