Commit 5cba0e59 authored by Aurelio Colosimo's avatar Aurelio Colosimo

cleanup of state machine diagnostic messages

parent 076fa413
......@@ -12,13 +12,13 @@ void pp_diag_fsm(struct pp_instance *ppi, char *name, int sequence, int plen)
{
if (sequence == STATE_ENTER) {
/* enter with or without a packet len */
pp_timed_printf("fsm for %p: ENTER %3i (%s), packet len %i\n",
ppi, ppi->state, name, plen);
pp_timed_printf("fsm : ENTER %s, packet len %i\n",
name, plen);
return;
}
/* leave has one \n more, so different states are separate */
pp_timed_printf("fsm for %p: LEAVE %3i (%s) (next: %3i in %i ms)\n\n",
ppi, ppi->state, name, ppi->next_state, ppi->next_delay);
pp_timed_printf("fsm: LEAVE %s (next: %3i in %i ms)\n\n",
name, ppi->next_state, ppi->next_delay);
}
void pp_diag_trace(struct pp_instance *ppi, const char *f, int line)
......
......@@ -21,13 +21,14 @@ struct pp_state_table_item pp_state_table[] __weak = {
{ PPS_PASSIVE, "passive", pp_passive,},
{ PPS_UNCALIBRATED, "uncalibrated", pp_uncalibrated,},
{ PPS_SLAVE, "slave", pp_slave,},
{ WRS_PRESENT, "wr-present", wr_present,},
{ WRS_M_LOCK, "wr-m-lock", wr_m_lock,},
{ WRS_S_LOCK, "wr-s-lock", wr_s_lock,},
{ WRS_LOCKED, "wr-locked", wr_locked,},
{ WRS_PRESENT, "uncalibrated/wr-present", wr_present,},
{ WRS_M_LOCK, "master/wr-m-lock", wr_m_lock,},
{ WRS_S_LOCK, "uncalibrated/wr-s-lock", wr_s_lock,},
{ WRS_LOCKED, "uncalibrated/wr-locked", wr_locked,},
{ WRS_CALIBRATION, "wr-calibration",wr_calibration,},
{ WRS_CALIBRATED, "wr-calibrated",wr_calibrated,},
{ WRS_RESP_CALIB_REQ, "wr-resp-calib-req",wr_resp_calib_req,},
{ WRS_RESP_CALIB_REQ, "wr-resp-calib-req",
wr_resp_calib_req,},
{ WRS_WR_LINK_ON, "wr-link-on", wr_link_on,},
{ PPS_END_OF_TABLE,}
};
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