From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EACE4A00BE; Wed, 30 Oct 2019 19:31:50 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 103A01BEE1; Wed, 30 Oct 2019 19:31:50 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 18CF71BE9F for ; Wed, 30 Oct 2019 19:31:48 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9UIPLZL003752 for ; Wed, 30 Oct 2019 11:31:48 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=DSWqK5h2fuizK4x9xQzK8NBVW3fC8rlB7Pe0B+QMmRA=; b=qomyk9cNissCOPqk+zb0HHKcrzOM3gdrOPHLXwMkyB94DYQ2ZHzm5FwqhPsOyy2Y1r/H W87I/OjSZlc8x2Qh10HWQygmzrIKNhy7aafmoLa3V6CMIV9ug6q/gSvdHUX/stuJ4rUj KQUFlvW2Gj9s2xR3SRzCCJXWmRQ0lTpELl7TvyrCVXIIJFPZeroeD8Qv3ksKR6+pCL/B 40SLfCEpvnY2Dh0gokjLuaP++XPTeFv7JWgW/gZzBvXETXPzJ1opCa9/0TFEfT+nONTm PYnzh0z8iiErGViqZT3pWcTJsv6tzrKWbXexDoYkl3iR01gVVmtALsclWFVFAT25gYk+ Dg== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2vxwjm3y9j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 30 Oct 2019 11:31:47 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 30 Oct 2019 11:31:47 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Wed, 30 Oct 2019 11:31:47 -0700 Received: from BG-LT7430.marvell.com (unknown [10.28.17.33]) by maili.marvell.com (Postfix) with ESMTP id 29C643F703F; Wed, 30 Oct 2019 11:31:44 -0700 (PDT) From: To: , Nithin Dabilpuram , "Kiran Kumar K" CC: , Pavan Nikhilesh Date: Thu, 31 Oct 2019 00:01:42 +0530 Message-ID: <20191030183143.905-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-30_08:2019-10-30,2019-10-30 signatures=0 Subject: [dpdk-dev] [PATCH] net/octeontx2: fix compilation with x86_x32 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" From: Pavan Nikhilesh x86_x32 compilation failing due to incorrect format specifiers in logs. Fixes: a78b9246723b ("net/octeontx2: add remaining PTP operations") Signed-off-by: Pavan Nikhilesh --- drivers/net/octeontx2/otx2_ptp.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/net/octeontx2/otx2_ptp.c b/drivers/net/octeontx2/otx2_ptp.c index fd13c2678..7efdbba1f 100644 --- a/drivers/net/octeontx2/otx2_ptp.c +++ b/drivers/net/octeontx2/otx2_ptp.c @@ -259,9 +259,9 @@ otx2_nix_timesync_read_rx_timestamp(struct rte_eth_dev *eth_dev, *timestamp = rte_ns_to_timespec(ns); tstamp->rx_ready = 0; - otx2_nix_dbg("rx timestamp: %llu sec: %lu nsec %lu", - (unsigned long long)tstamp->rx_tstamp, timestamp->tv_sec, - timestamp->tv_nsec); + otx2_nix_dbg("rx timestamp: %"PRIu64" sec: %"PRIu64" nsec %"PRIu64"", + (uint64_t)tstamp->rx_tstamp, (uint64_t)timestamp->tv_sec, + (uint64_t)timestamp->tv_nsec); return 0; } @@ -280,9 +280,9 @@ otx2_nix_timesync_read_tx_timestamp(struct rte_eth_dev *eth_dev, ns = rte_timecounter_update(&dev->tx_tstamp_tc, *tstamp->tx_tstamp); *timestamp = rte_ns_to_timespec(ns); - otx2_nix_dbg("tx timestamp: %llu sec: %lu nsec %lu", - *(unsigned long long *)tstamp->tx_tstamp, - timestamp->tv_sec, timestamp->tv_nsec); + otx2_nix_dbg("tx timestamp: %"PRIu64" sec: %"PRIu64" nsec %"PRIu64"", + *tstamp->tx_tstamp, (uint64_t)timestamp->tv_sec, + (uint64_t)timestamp->tv_nsec); *tstamp->tx_tstamp = 0; rte_wmb(); @@ -358,7 +358,8 @@ otx2_nix_timesync_read_time(struct rte_eth_dev *eth_dev, struct timespec *ts) ns = rte_timecounter_update(&dev->systime_tc, rsp->clk); *ts = rte_ns_to_timespec(ns); - otx2_nix_dbg("PTP time read: %ld.%09ld", ts->tv_sec, ts->tv_nsec); + otx2_nix_dbg("PTP time read: %"PRIu64" .%09"PRIu64"", + (uint64_t)ts->tv_sec, (uint64_t)ts->tv_nsec); return 0; } -- 2.20.1