Commit 5c104cc9 authored by Alessandro Rubini's avatar Alessandro Rubini

wr_protocol: fix a compiler warning

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 33154791
......@@ -206,8 +206,11 @@ void wrTimerExpired(UInteger8 currentState, RunTimeOpts *rtOpts, PtpPortDS *ptpP
}
else
{
// PTPD_TRACE(TRACE_WR_PROTO, ptpPortDS,"WR_Slave_TIMEOUT: state[=%d] timeout, repeated %d times, going to Standard PTP\n", \
currentState,ptpPortDS->currentWRstateCnt );
if (0)
PTPD_TRACE(TRACE_WR_PROTO, ptpPortDS,
"WR_Slave_TIMEOUT: state[=%d] timeout, "
"repeated %d times, going to Standard PTP\n",
currentState,ptpPortDS->currentWRstateCnt );
ptpPortDS->wrModeON = FALSE;
toWRState(WRS_IDLE, rtOpts, ptpPortDS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment