* [dpdk-dev] [PATCH] net/octeontx2: fix compilation with x86_x32
@ 2019-10-30 18:31 pbhagavatula
2019-11-06 0:43 ` Gavin Hu (Arm Technology China)
0 siblings, 1 reply; 3+ messages in thread
From: pbhagavatula @ 2019-10-30 18:31 UTC (permalink / raw)
To: jerinj, Nithin Dabilpuram, Kiran Kumar K; +Cc: dev, Pavan Nikhilesh
From: Pavan Nikhilesh <pbhagavatula@marvell.com>
x86_x32 compilation failing due to incorrect format specifiers in logs.
Fixes: a78b9246723b ("net/octeontx2: add remaining PTP operations")
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] net/octeontx2: fix compilation with x86_x32
2019-10-30 18:31 [dpdk-dev] [PATCH] net/octeontx2: fix compilation with x86_x32 pbhagavatula
@ 2019-11-06 0:43 ` Gavin Hu (Arm Technology China)
2019-11-06 6:41 ` Jerin Jacob
0 siblings, 1 reply; 3+ messages in thread
From: Gavin Hu (Arm Technology China) @ 2019-11-06 0:43 UTC (permalink / raw)
To: pbhagavatula, jerinj, Nithin Dabilpuram, Kiran Kumar K; +Cc: dev, nd
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] net/octeontx2: fix compilation with x86_x32
2019-11-06 0:43 ` Gavin Hu (Arm Technology China)
@ 2019-11-06 6:41 ` Jerin Jacob
0 siblings, 0 replies; 3+ messages in thread
From: Jerin Jacob @ 2019-11-06 6:41 UTC (permalink / raw)
To: Gavin Hu (Arm Technology China)
Cc: pbhagavatula, jerinj, Nithin Dabilpuram, Kiran Kumar K, dev, nd,
Ferruh Yigit
On Wed, Nov 6, 2019 at 6:13 AM Gavin Hu (Arm Technology China)
<Gavin.Hu@arm.com> wrote:
>
> Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Applied to dpdk-next-net-mrvl/master. Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-11-06 6:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-30 18:31 [dpdk-dev] [PATCH] net/octeontx2: fix compilation with x86_x32 pbhagavatula
2019-11-06 0:43 ` Gavin Hu (Arm Technology China)
2019-11-06 6:41 ` Jerin Jacob
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).