summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo de Lara <pablo.de.lara.guarch@intel.com>2015-07-22 09:06:48 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-07-22 12:00:05 +0200
commit878a0e99ce6564b60e41946cd5d5c1651bb3203e (patch)
tree056742c0380160384de91d8a20b18b1d4f0c49fb
parentb50c10cc892ecd2bf84cf3bd046e51ce47c9c5bd (diff)
downloaddpdk-878a0e99ce6564b60e41946cd5d5c1651bb3203e.zip
dpdk-878a0e99ce6564b60e41946cd5d5c1651bb3203e.tar.gz
dpdk-878a0e99ce6564b60e41946cd5d5c1651bb3203e.tar.xz
app/testpmd: fix ieee1588 32-bit timestamp log
In ieee1588fwd.c, timestamp.tv_sec is a time_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 <pablo.de.lara.guarch@intel.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
-rw-r--r--app/test-pmd/ieee1588fwd.c4
1 files 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");