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>
(unsigned) pi);
return;
}
- printf("Port %u RX timestamp value %"PRIu64"\n",
+ printf("Port %u RX timestamp value %lu\n",
(unsigned) pi, timestamp.tv_sec);
}
(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");