From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo de Lara Subject: [PATCH] testpmd: fix wrong variable type in ieee1588fwd for 32 bits Date: Wed, 22 Jul 2015 07:38:38 +0100 Message-ID: <1437547118-28633-1-git-send-email-pablo.de.lara.guarch@intel.com> To: dev@dpdk.org 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 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 List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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