From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id E12905949 for ; Wed, 22 Jul 2015 09:26:13 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 22 Jul 2015 00:26:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,521,1432623600"; d="scan'208";a="767215007" Received: from pgsmsx102.gar.corp.intel.com ([10.221.44.80]) by fmsmga002.fm.intel.com with ESMTP; 22 Jul 2015 00:26:12 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by PGSMSX102.gar.corp.intel.com (10.221.44.80) with Microsoft SMTP Server (TLS) id 14.3.224.2; Wed, 22 Jul 2015 15:26:10 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.165]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.246]) with mapi id 14.03.0224.002; Wed, 22 Jul 2015 15:26:09 +0800 From: "Lu, Wenzhuo" To: "De Lara Guarch, Pablo" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] testpmd: fix wrong variable type in ieee1588fwd for 32 bits Thread-Index: AQHQxEkiqZyAVSNn/0SqtxjqORgr8p3nFoZg Date: Wed, 22 Jul 2015 07:26:08 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC0909CFBE1F@shsmsx102.ccr.corp.intel.com> References: <1437547118-28633-1-git-send-email-pablo.de.lara.guarch@intel.com> In-Reply-To: <1437547118-28633-1-git-send-email-pablo.de.lara.guarch@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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 07:26:14 -0000 Hi Pablo, > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Pablo de Lara > Sent: Wednesday, July 22, 2015 2:39 PM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] testpmd: fix wrong variable type in ieee1588f= wd for > 32 bits >=20 > In ieee1588fwd.c, timestamp.tv_sec is a size_t variable, which is a long = int, but it I think you mean time_t :) > was being printed with PRIu64, causing an issue on 32 bits. >=20 > Signed-off-by: Pablo de Lara > --- > app/test-pmd/ieee1588fwd.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/app/test-pmd/ieee1588fwd.c b/app/test-pmd/ieee1588fwd.c inde= x > 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); } >=20 > @@ -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 =3D=3D 1) ? "" : "s"); > -- > 2.4.2